node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

Update refresh-token-grant-type.js

Open Zireael opened this issue 5 years ago • 0 comments

For consistency shouldn't client.id be client.clientId? in: if (token.client.id !== client.id) { throw new InvalidGrantError('Invalid grant: refresh token is invalid'); } Keeping old format with && switch for backwards compatibility: if ((token.client.id !== client.id) && (token.client.id !== client.clientId)) { throw new InvalidGrantError('Invalid grant: refresh token is invalid'); }

Zireael avatar May 16 '20 08:05 Zireael