You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move this.validateScope(user, client, scope) out of the array and check this before generating the tokens.
Use case
We use JWT's and only an internal token id is saved instead of the full JWT string. This means generating the token automatically means saving the token. So we are not actually using the saveToken function.
The text was updated successfully, but these errors were encountered:
When there is an invalid scope passed, there is still an
accessToken
andrefreshToken
generated.Code
node-oauth2-server/lib/grant-types/password-grant-type.js
Lines 105 to 127 in 0154165
Suggestion
Move
this.validateScope(user, client, scope)
out of the array and check this before generating the tokens.Use case
We use JWT's and only an internal token id is saved instead of the full JWT string. This means generating the token automatically means saving the token. So we are not actually using the
saveToken
function.The text was updated successfully, but these errors were encountered: