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
Noticed this as well. We use the authenticateHandler for the login form that shows up on the authorization server, for auth code flow.... something like this:
Before, the modal method would return null if a valid user could not be found and we'd get a server error. Now, it throws an invalid grant error if a user can't be found, similar to how it gets handled in the password flow, here:
thrownewInvalidGrantError('Invalid grant: user credentials are invalid');
}
So this way it's at least consistent between the two.... IMO, the code in the authorize handler should throw an InvalidGrantError similar to how the password grant type does it, see above ^^
The docs for
authenticateHandler
say:However if I return
null
I then get the following Error:node-oauth2-server/lib/handlers/authorize-handler.js
Lines 263 to 265 in 91d2cbe
The text was updated successfully, but these errors were encountered: