diff --git a/src/modules/sub-auth.js b/src/modules/sub-auth.js index 33624bb..8d979c1 100644 --- a/src/modules/sub-auth.js +++ b/src/modules/sub-auth.js @@ -73,10 +73,8 @@ module.exports.getDiscordUser = function (code, session) { }).then(resp2 => resp2.json()).then(userInfo => { var user = {} - - const global_name = userInfo.user.global_name - - if(typeof global_name == "undefined") { + + if(typeof userInfo.user == "undefined") { reject("MIGRATE_ACCOUNT_ONLY") } else {