Cannot authenticate with relay app


#1

I’m attempting to connect a relay app to the github graphql endpoint. I’ve verified my token works by sending out a curl request with the token, and successfully received a response. Here is my code to setup the network layer

Relay.injectNetworkLayer(
  new Relay.DefaultNetworkLayer('https://api.github.com/graphql', {
    headers: {
      Authorization: 'Bearer MYTOKEN'
    }
  })
)

I receive this error when attempting to run the application

ERROR in ./src/index.js
Module build failed: Error: Unauthorized: {"message":"This endpoint requires you to be authenticated.","documentation_url":"https://developer.github.com/v3/#authentication"}

Is there something I’m missing here? Thanks!