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

Question: only single user session at a time #110

Open
jankrnavek opened this issue Jan 29, 2025 · 2 comments
Open

Question: only single user session at a time #110

jankrnavek opened this issue Jan 29, 2025 · 2 comments

Comments

@jankrnavek
Copy link

jankrnavek commented Jan 29, 2025

Is possible to setup JWT to allow only single user session at a time? e.g. previous logged session will be forced to logout.
Thanks for info ,
Hanz

@eadwinCode
Copy link
Owner

session has to browser cookies from my understanding. but you can blacklist a token and the token becomes invalid when you do so

@jankrnavek
Copy link
Author

You are right.
There can be a django-ninja-jwt setting that perform this logic: after successful logging user look for and delete all previous active users session in django orm.
What do you think?

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

2 participants