A Supabase authentication helper for SvelteKit
Supakit is a Supabase auth helper specifically designed for SvelteKit. It offers several key features that differentiate it from the official Supabase SvelteKit auth helper. These features include the use of httpOnly cookie storage for enhanced security against XSS, including CSRF protection. It also provides additional functionalities such as a “Remember Me” feature, options to set flowType and debug for client auth, a callback route for server-side auth, and a confirm route for server-side token hash OTP verification. Supakit also includes a built-in server client, saving you the hassle of additional setup. It stores provider tokens and refresh tokens in separate httpOnly cookies and offers a secure client-side “session” store for immediate reactivity.
To install Supakit, run the following commands:
npm install supakit
pnpm add supakit
yarn add supakit
Supakit is a Supabase auth helper specifically designed for SvelteKit. It offers enhanced security features such as HTTPOnly cookie storage and CSRF protection. It also provides additional functionalities like a “Remember Me” feature and options to set flowType and debug for client auth. With a built-in server client and a secure client-side “session” store, Supakit simplifies the auth setup process and ensures immediate reactivity after auth events.