I have two websites created using Flutter.
One website is deployed on the main domain and another website is deployed on the sub-domain of main domain where first site is already deployed.
Both websites are using the same Firebase Project so, the Authentication detail and user base is same for both.
What I wanted to achieve is like when user login on one website, he doesn't need to log in on another website. Another website just detects it as an already logged-in user. This is kind of Single sign.
I went through firebase documentation but didn't get any guidance on how to achieve it. The custom token could be a way to achieve it but I am afraid that it could make authentication complicated.
Any pointer or guidance would be appreciated.