1

Any suggestion on prevent simultaneous logins of the same user with firebase in android ?

I'm new to this tho

Comments
  • 0
    Setup a table of of user IDs and an active session boolean
  • 0
    @enron456 kind of not understand still tho...
  • 0
    @johnmelodyme setup a json file or add another property to your user id that is boolean for active user. Second a user logins then set the bool to true and always have logins check whether there is an active user. Google session management and use the same principle
  • 0
    Generate a long, random unique login token on login. Invalidate all other tokens for the user when that happen. all coms to the server should include this token in the request. You can also identify which user made the request from the token. requests with invalid tokens gets redirected to the login page.
Add Comment