Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
manjufy committed Sep 1, 2018
1 parent e3ec365 commit 5a7560b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ app.get('/', (req, res) => {
app.get('/auth', (req, res) => {
const code = req.query.code
console.log('CODE', code)
// TODO in progress.
// Make a post request to Github
axios.post('https://github.com/login/oauth/access_token', {
return axios.post('https://github.com/login/oauth/access_token', {
client_id: '13713e448956673736bb',
client_secret: 'c1b575cce6f3fc4e77ec829c6bcd7657ebd6a9ce',
code,
Expand All @@ -31,10 +30,6 @@ app.get('/auth', (req, res) => {
'crossDomain': true
}
})
.then(data => {
console.log('Data', data)
})

})

app.listen(3333)
Expand Down

0 comments on commit 5a7560b

Please sign in to comment.