Complete list of errors for webAuth.login()

We’re using the webAuth.login(…) on our universal login pages. I need a list of the possible errors that includes the name, code, and description. I can’t seem to find this in the docs.

Hi @rhuber,

Thanks for reaching out to the Auth0 Community!

You can find the complete list of error codes and descriptions in this documentation.

Please let me know if you have any further questions

Thank you.

Thanks for the response! I’ve seen this documentation and I see a few problems. Using this class and method, a wrong password attempt returns the following respone:

{original: Error: {"name":"ValidationError","code":"invalid_user_password","description":"Wrong email or passw…, statusCode: 401, code: 'invalid_user_password', description: 'Wrong email or password.', name: 'ValidationError'}code: "invalid_user_password"description: "Wrong email or password."name: "ValidationError"original: Error: {"name":"ValidationError","code":"invalid_user_password","description":"Wrong email or password.","statusCode":400}
    at Request.<anonymous> (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:61101)
    at Request.Emitter.emit (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:42896)
    at XMLHttpRequest.xhr.onreadystatechange (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:65751)original: nullresponse: Responseaccepted: falsebadRequest: falsebody: {name: 'ValidationError', code: 'invalid_user_password', description: 'Wrong email or password.', statusCode: 400}charset: "utf-8"clientError: truecreated: falseerror: Error: cannot POST https://stellarmls-dev-login.sso.remine.com/usernamepassword/login (401)
    at Response.toError (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:62408)
    at ResponseBase._setStatusProperties (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:56394)
    at new Response (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:59860)
    at Request.<anonymous> (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:60685)
    at Request.Emitter.emit (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:42896)
    at XMLHttpRequest.xhr.onreadystatechange (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:65751)forbidden: falseheader: {alt-svc: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400', cache-control: 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, no-transform', cf-cache-status: 'DYNAMIC', cf-ray: '708bf116b84e8244-IAD', content-length: '115', …}headers: {alt-svc: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400', cache-control: 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, no-transform', cf-cache-status: 'DYNAMIC', cf-ray: '708bf116b84e8244-IAD', content-length: '115', …}info: falselinks: {}noContent: falsenotAcceptable: falsenotFound: falseok: falseredirect: falsereq: Request {_query: Array(0), method: 'POST', url: 'https://stellarmls-dev-login.sso.remine.com/usernamepassword/login', header: {…}, _header: {…}, …}serverError: falsestatus: 401statusCode: 401statusText: ""statusType: 4text: "{\"name\":\"ValidationError\",\"code\":\"invalid_user_password\",\"description\":\"Wrong email or password.\",\"statusCode\":400}"type: "application/json"unauthorized: trueunprocessableEntity: falsexhr: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}[[Prototype]]: Objectstatus: 401message: "{\"name\":\"ValidationError\",\"code\":\"invalid_user_password\",\"description\":\"Wrong email or password.\",\"statusCode\":400}"stack: "Error: {\"name\":\"ValidationError\",\"code\":\"invalid_user_password\",\"description\":\"Wrong email or password.\",\"statusCode\":400}\n    at Request.<anonymous> (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:61101)\n    at Request.Emitter.emit (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:42896)\n    at XMLHttpRequest.xhr.onreadystatechange (https://cdn.auth0.com/js/auth0/9.19/auth0.min.js:8:65751)"[[Prototype]]: ObjectstatusCode: 401[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()

which is not in the list in the docs

1 Like

Is there someone willing to come on a live call? I have other questions that don’t seem apparent in the docs…

1 Like

Hi @rhuber,

Thank you for your responses.

It appears that the user encountered a 401 error with the “Wrong email or password” error message.

In this case, could you please check if you are submitting the correct user credentials when logging in?

It may be worth trying with a newly created user.

Yes, we can get on a call to dive deeper.

Thank you.