sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.25k stars 162 forks source link

Can I use the same identity across multiple subdomains? #920

Open MilesWuCode opened 3 days ago

MilesWuCode commented 3 days ago

Describe the feature

I have two subdomains:

p1.domain.com p2.domain.com Both are using Nuxt Auth.

I want to maintain the authenticated state on p2.domain.com after logging in on p1.domain.com.

I've consulted the following documentation:https://next-auth.js.org/configuration/options#cookies

However, it's not working as expected. Am I missing something?