I am using Firebase Username/Password authentication in my Android app. But it seems to allow any number of devices to sign in using a single username/password. Is there a way to limit sign-in to a single device (or a limited small number of devices)?
What I am looking for is something like this. When a new device signs-in using an existing username/password:
a) validate the username and password
b) sign-out all devices currently signed in with that username/password
c) then sign-in the new device
I saw something about revoking Refresh tokens (https://firebase.google.com/docs/auth/admin/manage-sessions) - can this be used to achieve the above?
Alternately, is there a way to limit the number of simultaneous logins?
Right now I am NOT using any databases - would prefer a solution that does not require use of a database.