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