SvelteKit auth helpers and storing session.user in a store—no more prop drilling with session.user
In most code samples I see, the
which is then available to
What I would like to do is store
auth helpers return session, as part of data, e.g.which is then available to
+page.svelte viaWhat I would like to do is store
user in a Svelte store so that components that don't live at +page.svelte can access user without prop drilling. Wondering how you people are perhaps doing this?