Fix critical bug in signup code #46
@ -214,8 +214,9 @@ module.exports = async function(robot, kredits) {
|
|||||||
res.status(400).json({});
|
res.status(400).json({});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
let githubResponse;
|
||||||
try {
|
try {
|
||||||
const githubResponse = await fetch('https://api.github.com/user', {
|
githubResponse = await fetch('https://api.github.com/user', {
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/vnd.github.v3+json',
|
'Accept': 'application/vnd.github.v3+json',
|
||||||
'Authorization': `token ${accessToken}`
|
'Authorization': `token ${accessToken}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user