Github OAuth2 API example application
This is an example node application that implements Githubs OAuth2 API.
Run this example
- Create a Github OAuth app at https://github.com/settings/applications
- Homepage URL: http://localhost:3000
- Callback URL: http://localhost:3000/oauth/redirect
- Edit index.js with your app config
- Install dependencies with
yarn install
ornpm install
- Run the webserver with
node index.js
- Browse to http://localhost:3000
reference:
https://github.com/sohamkamani/node-oauth-example
https://github.com/lichess-org/api/tree/master/example/oauth-authorization-code