sveltekit-auth-example

Sveltekit Auth Example

(Email + password + verification code) / Google OAuth

SvelteKit email/password/verification code + Google auth example

Made with lucia, better-sqlite3, redis, nodemailer and tailwindcss.

Rate limiting included ⭐

redis

Start a linux redis server using sudo service redis-server start.

https

In the example, a self signed certificate was used, although it's not required.

To make one yourself, follow this guide on stackoverflow https://stackoverflow.com/a/76525335

.env

DATABASE_PATH=""
SENDER_EMAIL=""
GMAIL_PASS=""
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
GOOGLE_REDIRECT_URI=""

Top categories

Loading Svelte Themes