From 9112f8ed937d5c7fbfae93e7fc1ff1e01601d196 Mon Sep 17 00:00:00 2001 From: Alexander Jank Date: Wed, 3 Jan 2018 23:20:30 +0100 Subject: [PATCH] Update models.js --- components/oauth/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }