sveltekit-auth-example
sveltekit-auth-example copied to clipboard
An example SvelteKit app implementing a simple authentication system.
Nesting buttons in the links to get the intended style classes.
If a store is created in SSR, it will end up being a global store shared by all users. The issue is discussed here: https://github.com/sveltejs/kit/discussions/4339 Docs mention it, but only...
I set `auth_token` cookie to expire in 1 second in `routes/login/+page.server.ts`. After a successful login, the cookie expires immediately. However, I can continue to use client side navigation to move...