This is a NextJs 14 App Router boilerplate that uses NextAuth library.
- Protected Page
- NextJs Middleware
Clone this repository.
Copy the .env.example
and rename it as .env
.
Insert the value to respective field
Run the following command to generate NEXTAUTH_SECRET
, openssl rand -base64 32
.
NEXTAUTH_URL=
NEXTAUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=