Authenticate user via AuthJS-SvelteKit and store them in a SQLite database via Prisma.
Did not work right out of the box, but with a little help.
currently not working on vercel, but locally
- connecting SvelteKit, AuthJS and Prisma
- make protected routes secure via await parent()
- Authenticate via GitHub OAuth
- Authenticate via email & password
- Verification Mail
- Seed-data aka user, posts, comments, etc
npm install
and reset Prisma
removes migrations, database-file and starts dev server
bash resetdb.sh
do we need this?
prisma-adapter
is manually added in lib/server/PrismaAdapter
and next-auth
is replaced with @auth/core
"@next-auth/prisma-adapter": "^1.0.5",
"next-auth": "^4.18.6"