You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add another guard, for example 'frontendapi' and set the driver to passport
Assign the guard through a middleware
Try to authenticatie, response will be that you stay unauthenticated. This is because Passport is explicitly searching for the 'api' guard. that makes that the middleware 'auth:guard' doesn't have any impact.
The text was updated successfully, but these errors were encountered:
Atm this isn't a problem because Passport doesn't implement multi auth. But this will indeed need to be made configurable if multi auth is to be supported. Please see #982
Description:
The api guard is hardcoded in some spots (https://github.com/laravel/passport/blob/7.0/src/Token.php#L80), this wasted +/- 2 hours of my time figuring out why I can't use 2 guards (userapi and frontendapi). I renamed my frontendapi guard back to api.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: