The first step in creating our Github OAuth application is registering our app on Github.
You will need to follow the below steps -
go to your Github account and navigate to /setting/developers.
Choose OAuth apps and create a New OAuth app.
In this step we have to give our application a name and a homepage URL I am using it on localhost so I've given a localhost URL.
We also need to provide an authorisation callback url here which is the url where the user is redirected to after Github authorise our application.
- After Registering the application we'll be redirected to our application settings and provided with the clientID and we need to manually generate the client secret. The clientID and client secret are to be stored in the
.env
file as these should not be exposed anywhere being sensitive information.
Top comments (0)