How can I possibly limit the number of sessions for a given user or even all. #1374
Unanswered
drexhacker
asked this question in
Q&A
Replies: 1 comment
-
You can probably overload the fastapi-users/fastapi_users/authentication/strategy/db/strategy.py Lines 43 to 46 in 61dba26 For example, you can at this point check if the user has other tokens and remove them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
fastapi-users
with beanie using DatabaseBackend. So I am curious to know how I can limit the number of sessions a single user can have.Beta Was this translation helpful? Give feedback.
All reactions