-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with sanctum token authentication #4
Comments
In my efforts to find a workaround for this I decided to add a middleware to perform early authentication using laravel-logins/src/CurrentLogin.php Line 29 in dd7b6dc
Modifying |
Thanks for reporting this issue! Fixed in v1.2.5 |
I am having an issue with sanctum token authentication and this package.
In my controller I was trying to get the
current_login
from the user, but it was always null.The controller is behind the
auth:sanctum
middleware, and the user is available in the controller.Digging through the chain of events it seems like the issue lies with
Auth::user()
(in CurrentLogin.php) being null when theTokenAuthenticated
event is being issued by sanctum.The text was updated successfully, but these errors were encountered: