From 042ea081a0904a7d2a19b2bce0c7e2b41f80b26b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 15 Jun 2018 14:35:52 -0700 Subject: [PATCH] Typo --- src/routes/oauth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/oauth2.js b/src/routes/oauth2.js index 827066694..ee4275e1d 100644 --- a/src/routes/oauth2.js +++ b/src/routes/oauth2.js @@ -137,7 +137,7 @@ function initialize() { var expires = Date.now() + constants.DEFAULT_TOKEN_EXPIRATION; var scope = accesscontrol.canonicalScope(client.scope); - tokendb.add(token, authCode.userId, authCode.clientId, expires, client.scope, function (error) { + tokendb.add(token, authCode.userId, authCode.clientId, expires, scope, function (error) { if (error) return callback(error); debug('exchange: new access token for client %s token %s', client.id, token);