I have firebase authentication set up and working fine for one app. However, I have two other apps that the first app redirects to depending on the user access level. For example, when a user signs into the first app, if they are a SuperAdmin
then the app will allow that user to continue in the first app at admin.mydomain.com
. If the user is a Manager
then the app redirects the user to manager.mydomain.com
. Finally if the user is an Employee
the app will redirect the user to employee.mydomain.com
.
The specific issue I am facing is that when the redirect happens the token that was generated for admin.mydomain.com
is not set on either of the other two subdomains. Is there a way to persist the login credentials between applications?