This repo is a template on how you can integrate OAuth in SvelteKit using Auth.js (NextAuth) and persist the user data in a database using Prisma Adapter.
clone the repo
git clone https://github.com/PrabhuKiran8790/sveltekit-authjs-prisma-template.git
cd sveltekit-authjs-prisma-template && pnpm i
.env
fileDATABASE_URL=
GOOGLE_ID=
GOOGLE_SECRET=
GITHUB_ID=
GITHUB_SECRET=
AUTH_SECRET=
NEXTAUTH_SECRET=