Tokens do not match #295
meliksahbirgul
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating a token with login attempt for a user. After that I'm trying to get the previous user's token with another user. I'm using the "tokenById" method.
$token = auth()->tokenById(123);
But the previous user's access token and the second token do not match. Is "tokenById" method generating a new token for the user and what is happening to the previous access token?
Beta Was this translation helpful? Give feedback.
All reactions