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.
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
garyaustin
02/11/2022, 10:56 PM
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
silentworks
02/11/2022, 11:00 PM
@User for cookie stuff with any of the SSR frameworks you will have to manage the cookie at the moment.