Skip to content

Commit d514e85

Browse files
chrisfrankoUzlopak
andauthored
Update lib/grant-types/refresh-token-grant-type.js
Co-authored-by: Uzlopak <[email protected]>
1 parent 324e29e commit d514e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grant-types/refresh-token-grant-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RefreshTokenGrantType.prototype.getRefreshToken = function(request, client) {
101101
}
102102

103103
if (token.client.id !== client.id) {
104-
throw new InvalidGrantError('Invalid grant: refresh token is invalid because token.client.id !== client.id');
104+
throw new InvalidGrantError('Invalid grant: refresh token was issued to another client');
105105
}
106106

107107
if (token.refreshTokenExpiresAt && !(token.refreshTokenExpiresAt instanceof Date)) {

0 commit comments

Comments
 (0)