diff --git a/static/SugoiAuthProvider.mjs b/static/SugoiAuthProvider.mjs index 153441d..2e42326 100644 --- a/static/SugoiAuthProvider.mjs +++ b/static/SugoiAuthProvider.mjs @@ -13,6 +13,9 @@ function getTwurpleProxy(token){ * @param {...string} scopes */ function hasScopes(token,...scopes){ + if(!token){ + return false + } for(const scope of scopes){ if(!token.scope.includes(scope)){ return false