/learn-next-auth

Learn Next-Auth with plenty of examples

Primary LanguageJavaScript

Learn Next Auth(Version 5)

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.

SUBSCRIBE TO tapaScript and support me ❤️ 🙏 ☺️

The Implementations:

🫶 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

🙏 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.

How to Set up and Run Locally

This is a Next.js project bootstrapped with create-next-app.

Getting Started

  • 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.