Fix critical bug in signup code #46

Merged
raucao merged 1 commits from bugfix/signup_issue into master 2019-09-01 15:03:06 +00:00

View File

@ -214,8 +214,9 @@ module.exports = async function(robot, kredits) {
res.status(400).json({});
return;
}
let githubResponse;
try {
const githubResponse = await fetch('https://api.github.com/user', {
githubResponse = await fetch('https://api.github.com/user', {
headers: {
'Accept': 'application/vnd.github.v3+json',
'Authorization': `token ${accessToken}`