JWT Authentication with Refresh Tokens multiple auth #156
Unanswered
jimnguyendev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi! Are you using different models for User and Admin entities? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, I am implementing refresh_token api with two guards Admin and User.
When the access_token expires I want to use middleware to check the token expires. However JwtAuth::parseToken()->authenticate() is accepting the token from the Admin guard even though I'm accessing the path where the guard is User. How do I solve this. Thank.
Here is my implementation:
Route
App\Http\Middleware\Authenticate
Beta Was this translation helpful? Give feedback.
All reactions