Skip to content

Next.js github oauth template (without external auth dep)

License

Notifications You must be signed in to change notification settings

Hamdan-Khan/nextjs-github-oauth

Repository files navigation

Next.js Github OAuth Template

Created this customizable template for implementing GitHub OAuth authentication in Next.js. Just to avoid the complexity of next-auth

  • Next.js v15 + TypeScript
  • Direct GitHub OAuth implementation
  • Custom Session Management

Installation

  1. Clone the repo

  2. Install the modules

pnpm install
  1. Set the environment variables in the .env file

Setting Up GitHub OAuth

  1. Go to GitHub Developer Settings > OAuth Apps > New OAuth App

  2. Fill in the application details:

  3. Copy the generated Client ID and Client Secret to your .env.local file

Contributions are welcome!

About

Next.js github oauth template (without external auth dep)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published