Forked, updated and changed from original article: https://www.alex-stewart.dev/blog/user-authentication-in-sveltekit-with-jwt
- Clone the repository or open in Github Codespaces
- Install dependencies with
pnpm install
- Generate DB with
pnpm db:push
- Start the server with
pnpm dev
- Explore and learn the code for your own implementation...
- Updated to Svelte 5 and Typescript
- Using Drizzle ORM instead of Prisma
- Accepts username or email for login
- Demo protecting routes via hooke.server.ts
- Refactoring of the Code...maybe better, maybe worse ;)
- Added Pico CSS for a little colors