DEV Community

Discussion on: GitHub Authorization with GraphQL and Apollo Server

Collapse
 
tiagoboeing profile image
Tiago Boeing

Eve! Excellent article. Some notes...

  1. In your code you are using token: access_token but the correct is githubToken: githubUser.access_token see the last line: carbon.now.sh/uDxspHrAqxkEGBdQXGQK

  2. In fetch promises you forgot to add method syntax to res.json: carbon.now.sh/KPBFLjXrw6iAH4HIub4e