Hello Everyone. I'm using SvelteKit with Supabase ...
# help
s
Hello Everyone. I'm using SvelteKit with Supabase and wondered if adding onAuthStateChange in the Hooks file is common. Officials docs has it on client side but some tutorials have in on server, in the hooks file. Since there isn't an official SvelteKit SSR guide, I wanted to ask.
g
This thread seems to be some of the current info on SvelteKit and server part: https://github.com/supabase/supabase/discussions/5218
s
In that case they are always managing their own cookies instead of taking advantage of what Supabase is already supposed to do. Is there a problem with Supabase in SSR?
g
I just use Sveltekit in static mode, so don't deal with SSR. You might ask on that thread. I pointed you there as it seemed most current discussion. You can search ssr here or there and get a better feel. @User probably can answer better if he sees this.
s
@User for cookie stuff with any of the SSR frameworks you will have to manage the cookie at the moment.
s
Oh ok. Thanks.