Open Wivon opened 2 months ago
hi @Wivon Sorry to hear you are having trouble. TBH smells like a setup/config issue rather than a code issue.
Maybe re-check the steps in the readme under the Supabase heading
What OAuth provider did you choose? is localhost set up as a redirect URL? does your login go through the OAuth Handshake?
Hi @JavascriptMick I checked the setup before sending the issues, but unfortunately didn't work as well. I tested using Google OAuth and email. And yes the login. I added localhost as redirect URL in supabase and allowed this URL too in Google OAuth settings. Yes it seems like the login process is working fine, the problems starts after login.
Hi, I'm facing the same issue. Using plain email and password auth.
From what I understand, AuthService.createUser()
is not getting called, because somehow the server/middleware/authContext.ts
is not getting called after sign up.
@Wivon I found the fix. You need to change 'sb-access-token'
to 'sb-supabaseProjectId-auth-token'
.
I found out from checking what cookie name Supabase is storing on the browser, and it works!
I have all data populated on the tables now.
Thanks for the help, I switched to SuperSaaS boilerplate (by microbot) but that's good to know :)
thanks @laurensiusadi nice spot. wierd though, cookie on my live site is still sb-access-token. I wonder if it would be saver to just not check for the presence of the specific cookie and let if fall through to
const user = await serverSupabaseUser(event);
which will probably just fail if cookies were not present anyway
What's happening:
After signing in, or signing up, some data is undefined (e.g. activeMembership, accountStore). Nothing is populated in the DB (tables "account" and "user" are still empty after creating several accounts). This breaks the whole app: dashboard page is not populating since activeMembership isn't defined, same occurs for account page.
Error msg
-> often with message:
'no user or active account information was found'
screenshots