A simple application to demonstrate OAuth using GitHub OAuth
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