Updates
This commit is contained in:
+2
-1
@@ -123,11 +123,12 @@ function githubAuth(_a) {
|
||||
str += chunk;
|
||||
});
|
||||
response.on("end", function () {
|
||||
var _a;
|
||||
try {
|
||||
resolve(JSON.parse(str));
|
||||
}
|
||||
catch (error) {
|
||||
console.log(error);
|
||||
(_a = global.ERROR_CALLBACK) === null || _a === void 0 ? void 0 : _a.call(global, `Github Auth Error`, error);
|
||||
resolve({
|
||||
success: false,
|
||||
user: null,
|
||||
|
||||
Reference in New Issue
Block a user