Skip to content

BLOCKCHAINDEVWEB/nextjs-oauth2-github

Repository files navigation

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

Getting Started

Clone code:

git clone https://github.com/BLOCKCHAINDEVWEB/nextjs-auth2.git
cd nextjs-auth2

Duplicate the .env file given as an example:

cp .env.sample .env

Create you OAuth Apps in Github

  1. Open your Github settings and click Developer settings.
  2. Click OAuth Apps and create your New OAuth App.
  3. Completed the following and Register application.

sample:

  1. Generate a new client secret and Update application.
  2. Complete your .env file with variables environnement keys of project:
AUTH_SECRET=secret
JWT_SECRET=secret
GITHUB_CLIENT_ID=1a29...bea
GITHUB_CLIENT_SECRET=17e69d3543b673d...7d

Started application for development:

execute commands:

yarn or npm install
npm run dev

Open browser at http://localhost:3000

Learn More

Authorizing Github OAuth Apps

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published