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
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
Sometimes the timing seems to work out, but its completely random, or rather that's how it seems to me
/?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 } while session is still 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