Skip to content

Commit f2e0a76

Browse files
authored
Merge pull request #302 from kristofferjansson/fix-verifyscope-example-docs
docs: fixed verifyCode example
2 parents 5865315 + 844342f commit f2e0a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/model/spec.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ Returns ``true`` if the access token passes, ``false`` otherwise.
951951
return false;
952952
}
953953
let authorizedScopes = token.scope;
954-
return requestedScopes.every(s => token.scope.includes(scope));
954+
return requestedScopes.every(s => authorizedScopes.includes(s));
955955
}
956956

957957
--------

0 commit comments

Comments
 (0)