Open notramo opened 1 year ago
You would do the same as for pure Svelte: https://supabase.com/docs/guides/getting-started/tutorials/with-svelte
Could you explain how? As I previously mentioned, the static adapter does not support server-side hooks.
The tutorial doesn't use any server-side hooks, as it's tutorial for svelte therefore no hooks exists. Just go from top to bottom of the linked tutorial and you will have working auth flow.
Sorry for the confusion, I haven't notice there are separate pages for pure Svelte and SvelteKit.
However, SvelteKit does not use window.fetch
but event.fetch
, so it's not compatible with the SvelteKit tutorial. #889
The client-side auth flow requires writing server-side hooks according to the docs, but it's not available with the static adapter. Is it possible to somehow solve authentication in a static site?