Please see latest version at: https://github.com/Leftium/userfront-svelte
Live Demo: userfront-kit.vercel.app
This is a port of the Userfront Vue.js/React examples to SvelteKit based on:
Userfront Svelte bindings are included and based on:
Starts a local server:
npm run dev
Optional steps to get protected API endpoints working:
- Set
VITE_USERFRONT_PUBLIC_KEYenvironment variable to your own Userfront public key. The base64 version must be used!
- Locally: Copy
.env.examplefile to.env.local, edit file. - Vercel, Netlify, etc: Set
VITE_USERFRONT_PUBLIC_KEYenvironment variable in deployment settings.
- Rebuild/redeploy.