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:
Which is available in the client with
But that exposes your session, access token, supabase keys and everything to the client, am I missing something here?
in the +layout.server.ts file you're returning:
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?