Answer the question
In order to leave comments, you need to log in
Can I get the User object through some Sanctum method knowing its token?
The task is this:
- I have a token that exists in the Sanctum `personal_access_tokens` table, and knowing it - I need to get the corresponding User object - is there some kind of Sanctum method for this, or do I need to write it?
Those. we are NOT talking about the current authenticated user, just any user through his token.
It’s not difficult to write a method, I just want to make the most of what I have, but I didn’t seem to find anything like that.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question