SupabaseS
Supabase23h ago
Tom

Sveltekit Server side authentication

So following these docs https://supabase.com/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=sveltekit

in the +layout.server.ts file you're returning:
return {
    session,
    user,
    cookies: cookies.getAll(),
  }

Which is available in the client with let { data } = $props();

But that exposes your session, access token, supabase keys and everything to the client, am I missing something here?
Configure your Supabase client to use cookies
Was this page helpful?