Next Authentication with nextauth.js
- First you can create a .env file and add the some configuration:
GITHUB_ID=
GITHUB_SECRET=
GOOGLE_ID=
GOOGLE_SECRET=
DATABASE_URL= db uri
- install prisma and the some configuration in the docs and try
-
npx prisma init
-
npx prisma generate
-
npx prisma db push