How can I share Firebase Simple Login across different domains?

I have example.com and app.example.com. How can I register one of one domain and share this session with another?

+4
source share
1 answer

Firebase Simple login sessions are saved using LocalStorage or SessionStorage, which are tied to the source HTML5, which is a tuple of the scheme, host and port, so by default it is not used by subdomains.

However, you can manually enable this in your application by creating a shared LocalStorage system using the methods described here. Can HTML5 and localStorage databases be shared with subdomains? .

+3
source

Source: https://habr.com/ru/post/1545415/


All Articles