Replies: 1 comment
-
|
Hey @mtzrmzia , if you want to check user identity right after login, check this hook to subscribe - https://sanctum.manchenkoff.me/hooks/sanctum-login. Otherwise, provide a complete use case, your current config and middleware, so I can better advise on this 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
My API returns the user with their roles and whether they are banned. On the front end, I want to validate if certain roles are allowed or if the user is not banned to grant them access to the app. I've already tried doing this in middleware, logging the user out with
logout(), but it still allows access, and then I have to press F5 to log them out. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions