https://github.com/tapascript/learn-next-auth
Learn Next-Auth(V5)/Auth.js with plenty of examples, projects, and video tutorials
https://github.com/tapascript/learn-next-auth
next-auth-v5 nextjs nextjs15
Last synced: 2 months ago
JSON representation
Learn Next-Auth(V5)/Auth.js with plenty of examples, projects, and video tutorials
- Host: GitHub
- URL: https://github.com/tapascript/learn-next-auth
- Owner: tapascript
- Created: 2024-05-07T09:11:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-30T14:18:24.000Z (over 1 year ago)
- Last Synced: 2025-04-07T09:04:01.860Z (9 months ago)
- Topics: next-auth-v5, nextjs, nextjs15
- Language: JavaScript
- Homepage: https://youtube.com/@tapasadhikary
- Size: 155 KB
- Stars: 153
- Watchers: 2
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Learn Next Auth(Version 5)
This repository contains the source code for the educational video on the [tapaScript YouTube Channel](https://www.youtube.com/tapasadhikary). You will find various Next-Auth implementation details and the source code in this repository.
> **SUBSCRIBE TO [tapaScript](https://www.youtube.com/@tapasadhikary) and support me β€οΈ π βΊοΈ**
## The Implementations:
- [Integrate Google OAUTH](https://github.com/tapascript/learn-next-auth/tree/01-integrate-google-provider) => [Watch the Video Tutorial](https://www.youtube.com/watch?v=O8Ae6MC5bf4)
- [Integrate GitHub OAUTH](https://github.com/tapascript/learn-next-auth/tree/02-integrate-github-provider) => [Watch the Video Tutorial](https://www.youtube.com/watch?v=O8Ae6MC5bf4)
- [Next-Auth Credential Provider](https://github.com/tapascript/learn-next-auth/tree/03-credential-auth) => [Watch the Video Tutorial](https://www.youtube.com/watch?v=4m7u7zGbdTI)
- [Next.js Authentication || Register User To MongoDB With Next-Auth V5](https://github.com/tapascript/learn-next-auth/tree/04-persist-auth-mongo) => [Watch the Video Tutorial](https://www.youtube.com/watch?v=5kmZAqc2Jeg)
- [Next.js Middleware Crash Course || App Router Protected Routes](https://github.com/tapascript/learn-next-auth/tree/05-middleware) => [Watch the Video Tutorial](https://www.youtube.com/watch?v=jHrjnZM26i4)
- [Refresh Token Rotation With Next-Auth V5 || Managing Tokens](https://github.com/tapascript/learn-next-auth/tree/06-token-management) => [Watch the Video Tutorial](https://youtu.be/95fuP8jpWlk)
## π«Ά Support
Liked my work? You can show your support with a STAR(β).
### Many Thanks to all the `Stargazers` who have supported this project with stars(β)
[Thanks to all stargazers](https://github.com/tapascript/learn-next-auth/stargazers)
## π Please Sponsor My Work
> I am an independent educator who creates meaningful projects to teach programming. You can support me further by [sponsoring me on GitHub](https://github.com/sponsors/atapas).
## How to Set up and Run Locally
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
- First, install dependencies using,
```bash
npm install
```
- Create a `.env` file at the root of the project folder with the following content:
```bash
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
AUTH_SECRET="Auth Secret"
```
- Then, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.