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
In grant.js within the usePasswordGrant Method you do
return this.model.getUser(uname, pword, function (err, user) {
if (err) return done(error('server_error', false, err));
That means, independently of err a server_error is returned. Here for example should be checked, if err is of type OAuth2Error in order to handle the error respectively.
Why do i have this problem: In my implementation of the authenticate method, i check if the user trying to log in has already confirmed his email address. If not, i pass an respective error. Unfortunately, the error get's not returned by the server because of the problem stated above.
In general, can I somehow extend the error types specified in error.js?
The text was updated successfully, but these errors were encountered:
In grant.js within the usePasswordGrant Method you do
That means, independently of
err
a server_error is returned. Here for example should be checked, iferr
is of typeOAuth2Error
in order to handle the error respectively.Why do i have this problem: In my implementation of the
authenticate
method, i check if the user trying to log in has already confirmed his email address. If not, i pass an respective error. Unfortunately, the error get's not returned by the server because of the problem stated above.In general, can I somehow extend the error types specified in error.js?
The text was updated successfully, but these errors were encountered: