diff --git a/components/oauth/models.js b/components/oauth/models.js index 89f252f..d7d07cf 100644 --- a/components/oauth/models.js +++ b/components/oauth/models.js @@ -237,8 +237,8 @@ function getRefreshToken(refreshToken) { }); } -function validateScope(token, client) { - return (user.scope === scope && client.scope === scope && scope !== null) ? scope : false +function validateScope(token, client, scope) { + return (token.scope === scope && client.scope === scope && scope !== null) ? scope : false } function verifyScope(token, scope) {