Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 791 Bytes

File metadata and controls

33 lines (20 loc) · 791 Bytes

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!