Skip to content

takeshikriang/next-js-passwordless-email-authentication-demo

Repository files navigation

Next.js Passwordless Email Authentication Demo

Tech Stack

  • Next.js 13 (with app router)
  • NextAuth.js (with custom roles)
  • Prisma (Postgres)

Getting Started

  1. Create a new .env.local file then add the following values to it:
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3000

POSTGRES_PRISMA_URL=your-db-url
POSTGRES_URL_NON_POOLING=your-db-url

[email protected]
EMAIL_SERVER=smtp://your-username:[email protected]:587
  1. Run Prisma to prototype a new schema:
pnpm prisma-db-push
  1. Start a local dev server:
pnpm install

pnpm dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published