'How to login one time and access in all domain using nextjs?
How to login one time and access in all domain using next.js?
example: Login using accounts.example.com and then use it on something.example.com, www.example.com
How to do that using next.js and firebase-auth?
If more information needed let me know.
Edit: 1
Some links to make question better: Firebase sign in in accounts.example.com and access in something.example.com using react or next
Solution 1:[1]
I am not much aware of firebase-auth details but what is the issue here ? You can just set a cookie after user logs into "accounts.example.com" with domain as "example.com" in cookie, so that this cookie will be sent by client to all the subdomains as well and you can use that cookie to validate the user session.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shankar |
