Skip to content

Eetezadi/SvelteKit_5-Authentication-with-JWT-and-Drizzle

 
 

Repository files navigation

SvelteKit 5 JWT Authentication example using Drizzle

Forked, updated and changed from original article: https://www.alex-stewart.dev/blog/user-authentication-in-sveltekit-with-jwt

Installation

  1. Clone the repository or open in Github Codespaces
  2. Install dependencies with pnpm install
  3. Generate DB with pnpm db:push
  4. Start the server with pnpm dev
  5. Explore and learn the code for your own implementation...

Changes

  • 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

About

Basic JWT authentication example using SvelteKit 5 and Drizzle ORM

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 59.6%
  • JavaScript 18.6%
  • Svelte 16.5%
  • HTML 5.3%