Products:
Redis
Stack:
Next.js, Auth.js
Use Case:
Authentication, Session Management
Languages:
TypeScript
Platforms:
Publisher:

NextAuth.js with Upstash Redis

This is an example of how to do Next.js Authentication with NextAuth.js and Serverless Redis by Upstash.

Getting Started

  • Download or Clone this repository

  • Install all dependencies

npm install
# or
yarn install
# or
pnpm install
  • Copy .env.example to .env.local and check the .env.example file to fill in the environment variables

  • Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 to see the app.