Skip to content

weehongkoh/nextjs-app-router-auth0

Repository files navigation

NextJs 14 App Router and NextAuth Boilerplate

NextJs 14 App Router and Auth0

Demo Link

This is a NextJs 14 App Router boilerplate that uses the Auth0 library.

If you just want to implement the Next.js with NextAuth, go to here.

Latest Implementation

  • 25 May, 2024 - Add Auth0 Library

Pages

  • Protected Page

How to Use?

Clone this repository.

Copy the .env.example and rename it as .env . Insert the value to respective field

Run the following command to generate AUTH0_SECRET, openssl rand -base64 32.

AUTH0_SECRET=
AUTH0_BASE_URL=
AUTH0_ISSUER_BASE_URL=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=