/nuxt-authjs-prisma-example

Auth.js with Nuxt, using AuthJS Nuxt library with Prisma and Planetscale MySQL Database

Primary LanguageTypeScript

Env Varibles to Setup

Variables specified in nuxt.config.ts as runtimeConfig variables: NUXT_NEXTAUTH_SECRET (random generated string used as SECRET) and DATABASE_URL for mysql connection string

NUXT_NEXTAUTH_SECRET="your secret string"
DATABASE_URL='your database connection'
NUXT_GOOGLE_CLIENT_ID="google credentials client id"
NUXT_GOOGLE_CLIENT_SECRET="google credentials client secret"