Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
manjufy committed Sep 4, 2018
1 parent 224b232 commit 1bcf60b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ and

### Github OAuth flow explained

https://github.com/octokit/octokit.net/blob/master/docs/oauth-flow.md
https://github.com/octokit/octokit.net/blob/master/docs/oauth-flow.md

### TODO

Implement a package to consume Github auth code and return access token
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ app.get('/', (req, res) => {

app.get('/auth', async (req, res) => {
const code = req.query.code

// Make a post request to Github
const response = await axios.post('https://github.com/login/oauth/access_token', {
client_id: '13713e448956673736bb',
Expand Down

0 comments on commit 1bcf60b

Please sign in to comment.