Using the same project auth on sub domain and main domain #30483
-
Hi, thanks a lot for this great library. I have this problem I can't seem to figure out. Say I have this domain and sub domain: mywebsite.com and vendor.mywebsite.com. I want to be able to log in with different account on these websites. I have searched for long but couldn't find any reliable solutions. Any have any idea on how to handle this case? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
hello, if you happenened to find out how to do it, can you help me out? |
Beta Was this translation helpful? Give feedback.
-
I have an app that has to authenticate subdomains. my configurations are: cookieOptions: {
domain: '.my-app.com',
sameSite: 'lax',
maxAge: 60 * 60 * 24,
httpOnly: true,
path: "/",
}, I have proxy settings my-app.com pointing to localhost. that is my supabase url configuration Actually, i want to authenticated sub domains and main domain at the same time. i am using nuxt. |
Beta Was this translation helpful? Give feedback.
Hey. I found out that this happens only on local, when you deploy it, it works fine. Supabase understands they are different domains I guess?
So I can log in to vendor.mysite.com and my site.com with different account on the same browser.