0👍
You need to invalidate the auth token.
Add this to logout() function:
$token = auth()->tokenById(auth()->user()->id);
auth()->invalidate($token);
auth()->invalidate(true);
auth()->logout();
0👍
So It was an issue with the logout , but not only that .
actually the “this password ” in my login an register components were with syntaxe error .
Source:stackexchange.com