© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
hotbelgo

Google oAuth not working with sveltekit

I am using Google Auth and after the signin process has completed we return to sveltekit with a url
/?code=abc123
/?code=abc123

that code is clearly needed to complete the process but nothing in the example code shows hw to wait for supabase code to consume this and create a session. So what happens is that my code in layout.ts is returning
{ supabase, session }
{ supabase, session }
while session is still
null
null
and then my other code fails.

Sometimes the timing seems to work out, but its completely random, or rather that's how it seems to me
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Google OAuth sign in suddenly not working
SupabaseSSupabase / help-and-questions
4mo ago
Google OAuth app name not working correctly?
SupabaseSSupabase / help-and-questions
13mo ago
bad_oauth_callback error with Google OAuth
SupabaseSSupabase / help-and-questions
14mo ago
google oAuth issue with NextJS
SupabaseSSupabase / help-and-questions
13mo ago