I have two apps in a single project. 1st is a customer app and 2nd one is company app. both apps share the same firebase database.
And both the apps are identical in terms of login and registration. When started writing code for the 2nd app, that time I copied the 1st project and modified all the activities (android java code) as per my needs.
The issue I am facing is when customers register in the customer app and then the same login credentials are being used to login in company app without registering to it or vice-versa. I don't understand why this is happening. I saw one thing that for both the project SHA-1 key is the same after generating from the android studio.
I want to restrict login to without registering to it for both the apps, the one should be able to login in to the app in which he/she has registered, not in the 2nd app where he/she hasn't registered.