From efff0fdd4ecdd62e2a9fcfab557d6834af35b5e6 Mon Sep 17 00:00:00 2001 From: OXI-France <65077275+OXI-France@users.noreply.github.com> Date: Thu, 8 Oct 2020 22:37:28 +0200 Subject: [PATCH] Update refresh-token-grant-type.js Line 103 -> if (token.client.id !== client.id) to if (token.client.clientId !== client.clientId) { --- lib/grant-types/refresh-token-grant-type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grant-types/refresh-token-grant-type.js b/lib/grant-types/refresh-token-grant-type.js index 19f9010c2..b36545128 100644 --- a/lib/grant-types/refresh-token-grant-type.js +++ b/lib/grant-types/refresh-token-grant-type.js @@ -100,7 +100,7 @@ RefreshTokenGrantType.prototype.getRefreshToken = function(request, client) { throw new ServerError('Server error: `getRefreshToken()` did not return a `user` object'); } - if (token.client.id !== client.id) { + if (token.client.clientId !== client.clientId) { throw new InvalidGrantError('Invalid grant: refresh token is invalid'); }