From 1ef1d84545ac14aeaa0f9b6af60814427d5aaeb6 Mon Sep 17 00:00:00 2001 From: Chen Fangzhou Date: Sun, 24 Mar 2019 00:19:49 +0800 Subject: [PATCH] `rokenToken` is not required if alwaysIssueNewRefreshToken = false --- 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..f7af4acc6 100644 --- a/lib/grant-types/refresh-token-grant-type.js +++ b/lib/grant-types/refresh-token-grant-type.js @@ -29,7 +29,7 @@ function RefreshTokenGrantType(options) { throw new InvalidArgumentError('Invalid argument: model does not implement `getRefreshToken()`'); } - if (!options.model.revokeToken) { + if (options.alwaysIssueNewRefreshToken !== false && !options.model.revokeToken) { throw new InvalidArgumentError('Invalid argument: model does not implement `revokeToken()`'); }