Auth with new helpers
# help-and-questions
c
So my workflow before was this, I had auth subdomain ( auth.example.com ) and another subdomain ( x.example.com ), i would just set cookieOptions.domain to "example.com" in createBrowserSupabaseClient and redirect to x.example.com from auth.example.com and the session would be shared, the cookie domain was set correctly to example.com and i could authenticate any *.example.com domain like this Now when i set cookieOptions.domain to "example.com" in new createPagesBrowserClient it always sets the cookie ( \*-auth-token-code-verifier ) to auth.example.com ( with cookie domain set to "auth.example.com" even tho i set cookieOptions.domain to "example.com" ) and no cookie gets set to my x.example.com, i tried redirecting like before to just x.example.com/ and x.example.com/api/auth/callback but this gives the following error "AuthApiError: invalid request: both auth code and code verifier should be non-empty", which i think is because my x.example.com doesn't have the \*-auth-token-code-verifier cookie. I added the new /api/auth/callback.ts file to both auth.example.com and x.example.com Any idea how to create this workflow with the new helpers