How to allow login on only one device at a time

0

I have an app that when installed and logged in by firebase, the user will not be able to use their account on another device. In case, if you need to change the device the user will have to ask for release to a supervisor.

I'm using native Android, firebase auth and firebase realtime database.

I could not think of an uncomplicated way to do this ... Can anyone help me? Thank you in advance!

    
asked by anonymous 30.11.2017 / 17:51

1 answer

0

You can store user session information (such as device serial number, access date and time, etc.) on a Realtime Database node and manually control this information whenever a user is authenticated in the application. This answer details an implementation of this approach.

    
30.11.2017 / 18:31