doug_w
05/16/2017, 4:52 PMcurl https://api.github.com/?access_token=OAUTH-TOKEN
The error I am getting: bad credentials Am I misinterpreting the Auth token they are asking for?
createUser = () => {
const variables = {
idToken: window.localStorage.getItem('auth0IdToken'),
emailAddress: this.state.emailAddress,
name: this.state.name,
emailSubscription: this.state.emailSubscription,
}
fetch(`https://api.github.com/user?access_token=${variables.idToken}`)
.then(blob => blob.json())
.then(data => console.log(data))
}