Skip to content

Commit 28fd783

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

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
@@ -130,7 +130,7 @@ RefreshTokenGrantType.prototype.revokeToken = function(token) {
130130
return promisify(this.model.revokeToken, 1).call(this.model, token)
131131
.then(function(status) {
132132
if (!status) {
133-
throw new InvalidGrantError('Invalid grant: refresh token is invalid, no status');
133+
throw new InvalidGrantError('Invalid grant: refresh token is invalid or could not be revoked');
134134
}
135135

136136
return token;

0 commit comments

Comments
 (0)