This repository contains the source code for the educational video on the tapaScript YouTube Channel. You will find various Next-Auth implementation details and the source code in this repository.
- Integrate Google OAUTH => Watch the Video Tutorial
- Integrate GitHub OAUTH => Watch the Video Tutorial
- Next-Auth Credential Provider => Watch the Video Tutorial
- Next.js Authentication || Register User To MongoDB With Next-Auth V5 => Watch the Video Tutorial
- Next.js Middleware Crash Course || App Router Protected Routes => Watch the Video Tutorial
Liked my work? You can show your support with a STAR(⭐).
I am an independent educator who creates meaningful projects to teach programming. You can support me further by sponsoring me on GitHub.
This is a Next.js project bootstrapped with create-next-app
.
-
First, install dependencies using,
npm install
-
Create a
.env
file at the root of the project folder with the following content:GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID> GOOGLE_CLIENT_SECRET=<YOUR_GOOGLE_CLIENT_ID> GITHUB_CLIENT_ID=<YOUR_GITHUB_CLIENT_ID> GITHUB_CLIENT_SECRET=<YOUR_GITHUB_CLIENT_ID> AUTH_SECRET="Auth Secret"
-
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.