I am developing a mobile app where security is really key. I would like to implement a secure authentication flow where:
- I can track and limit the number of devices where a user can be logged in from
- I can identity the device that is trying to login in order to check if it is authorized
- In case of non-authorized device, add a 2FA security layer to authorize the new device
I currently use Firebase but it does not offer advanced or custom security feature related to my case.
Do you know how can I implement such a thing? With another backend tool? Do I need to code a custom auth server?
I examined the documentation of Firebase, Supabase, Auth0 and Okta and I did not find solution.