I have created an internal application whereas users are created by the administrator that is using the web application. However, whenever I create a new user, firebase will automatically change the user to the user I have logged in with which is not what I want. Does anyone have any idea how I am able to create a user account in Firebase Auth without authenticating into that account immediately after I have created it and stay in the account I am logged in with?
To Further elaborate, I am receiving this error:
Uncaught (in promise) FirebaseError: Firebase: Firebase App named '[DEFAULT]' already exists with different options or config (app/duplicate-app).
Find the code in attached picture Current Code