Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

iashutoshtiwari/oauth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Demo

A simple application to demonstrate OAuth using GitHub OAuth

Usage

Step 1: Install Node.js if you haven't already.

Step 2: Install the dependencies and devDependencies.

cd oauth-demo
npm i

Step 3: Register your OAuth app on GitHub using this link

Step 4: Add the Homepage URL as http://localhost:2400 and the Authorization callback URL as http://localhost:2400/github/callback

Step 5: Once you have obtained the const clientID and client secret key, create a new .env file in project's root folder and paste the following:

CLIENT_ID = "YOUR_CLIENT_ID_HERE"; // Add your client ID inside the quotes
CLIENT_SECRET = "YOUR_CLIENT_SECRET_HERE"; // Add your client secret inside the quotes

Step 6: Start the server

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published