A project to show how to prevent simultaneous login of the same user using Firebase Realtime Database and Flutter.
Clone this repository and run flutter run
.
Create an account and test to log in on more than 2 devices, you should get a pop up that indicates you that you're not allowed to use more than 2 screens at the same time.
This project uses Firebare authentication, Firebase Realtime Database and Bloc for the state managment.
You can check the commit Add screen limit to see the lines to add for this feature from an app with an authentication feature (here done with bloc and firebase) Basic app with auth.