This is a NextJs 13 App Router boilerplate that uses NextAuth library.
- Custom Sign In Page
- Protected Page
- NextJs Middleware
Clone this repository.
Copy the .env.example
and rename it as .env
.
Insert the value to respective field
NEXTAUTH_URL=
NEXTAUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=