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.
- 25 May, 2024 - Add Auth0 Library
- Protected Page
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=