Closed kristofferjansson closed 4 months ago
Hello,
The example code for verifyScope is declaring a variable authorizedScopes that is not used and also uses a variable scope that is not declared.
verifyScope
authorizedScopes
scope
function verifyScope(token, requestedScopes) { if (!token.scope) { return false; } let authorizedScopes = token.scope; return requestedScopes.every(s => token.scope.includes(scope)); }
Hello,
The example code for
verifyScope
is declaring a variableauthorizedScopes
that is not used and also uses a variablescope
that is not declared.