Repository navigation
User session count limiter for offline sessions (Flutter mobile app) #15568
Unanswered
merikwesterveld
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
We are creating a React application and a Flutter application, and for this we want to be able to control the maximum concurrent sessions a user can have per client. Specifically, we need a user to only be logged in once in the React app and once in the Flutter app. Currently, for the React app we are using the User Session Count Limiter (Terminate oldest session) and we are periodically polling the user info endpoint to check if the session is still valid. This works great. However, for the Flutter app we can't seem to use this since it creates offline sessions with an offline token. Are there any workarounds for this, or do we need to build some own implementation on the admin api in order to keep track of a single offline session per user?
Thanks!
Edit: Thought about checking the offline-sessions for a user and specific client but we can't seem to invalidate a specific offline-session, only all offline sessions. So that doesn't seem to be an option.
All reactions