Skip to content
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

logout api only invalidate the refresh token, but the auth token is still valid until it expires #267

Open
Bacce opened this issue Aug 24, 2023 · 2 comments

Comments

@Bacce
Copy link

Bacce commented Aug 24, 2023

logout endpoint was implemented here: #19

@aliasgar55
Copy link

That should be a expected behavior and hence we keep the expire time of access token low
If your application requires a more strict logout policy, maybe you can add a memory database which can track the user logouts, and every time you check the access token you also check if the user has logged out, and if the user has logged out you can return a 401 error to the user
You will probably also need to add some more fields to the JWT token to make this work

@imuhammadarsalan
Copy link

Ive tested the api logout but i think it is not working , Ive login as admin and after logout i can access /users endpoint which is not good !! please take a look at this bug..

Thanks.
Muhammad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants