Demo application using SvelteKit, Supabase and Cloudflare Workers
The sveltekit-supabase-demo repository demonstrates how to integrate Supabase with SvelteKit. It provides instructions on creating a .env file, creating tables in Supabase, setting up OAuth integration with Github and Twitter, and making authenticated calls to Supabase within endpoints. The article also discusses potential improvements for Supabase Auth.
To install the theme, follow these steps:
auth.onAuthStateChange() callback and the setAuthCookie function in the hooks.js file.The sveltekit-supabase-demo repository provides a demonstration of integrating Supabase with SvelteKit. It guides users through the process of setting up the necessary configurations and demonstrates how to make authenticated calls to Supabase within endpoints. The article also suggests potential improvements for Supabase Auth, such as allowing configuration of the refresh endpoint and providing a function to generate the cookie using just the token.