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
Hello . I am trying to implement a route for logging out a user . When a user logs out I want to revoke their access token and their refresh tokens. From the documentation thought the only way I see is this
1 endpoint for revoking the access token
1 endpoint for revoking refresh tokens
Is there anyway that I can use both tokens at the same request to do this without doing 2 separate api calls?
The text was updated successfully, but these errors were encountered:
I'm trying to figure out the same thing. You can only have one Authorization header per request, so you can only send the Access or the Refresh token, not both. So I think that means that you need to keep track of every single token (jti) you issue. So you could make the logout method accept any valid token, then it would look up in the DB for all the other tokens issued for that user and add them all to the denylist. This would be like a super-logout, log out of all sessions across even from multiple devices. Or you could remember each access,refresh pair and deny both when provided with either.
Hello . I am trying to implement a route for logging out a user . When a user logs out I want to revoke their access token and their refresh tokens. From the documentation thought the only way I see is this
1 endpoint for revoking the access token
1 endpoint for revoking refresh tokens
Is there anyway that I can use both tokens at the same request to do this without doing 2 separate api calls?
The text was updated successfully, but these errors were encountered: