In this blog, we’ll be implementing OAuth by Github in a Node.js Application
This tutorial assumes you have:
To implement Github Auth we need to register a new application in Github OAuth Apps.
Once you start the process you will get a form like this.
You need to fill all the required details and put the Authorization callback URL as http://localhost:2400/github/callback (This will be the URL on which Github will send the authorization code once authorization is finished)
Once you register the application you will get the App’s Client Id and Secret which we will use in our code.
#github #node.js #oauth