[!CAUTION]
Userfront Auth is ending service on May 31, 2026
- After that date, Userfront's auth functionality will no longer be available.
- Alternatives for Svelte auth: https://svelte.dev/packages#auth
RequireLogin: auth guard that redirects/shows error when authorization requirements not met.handleMissingAuthGuard: optional SvelteKit handle hook that prevents access of protected routes if they are missing an auth guard.UserfrontApi: class that simplifies calls to the Userfront API.userfrontCookieToTokens(): parse userfront cookie into tokensverifyToken(): verify a JWT token; extract payloadnpm install -D userfront-svelte
For usage, see tutorial below.