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
The error returned from signup is inconsistent which causes response-handler.js to set the error.code to the errors description instead of the actual code. This is true in Auth0.js v9.7.3 at least.
On code line 45 of response-handler.js, the hierarchy of values with signup_on_sso_domain errors will produce a result of the errObj.code = This domain domain.com has been configured for Single Sign On and you can't create an account. Try signing in instead.
Here are 2 errors as an example, user_exists errors are wrapped successfully:
e:
code:"user_exists"
description:"The user already exists."
name:"BadRequestError"
original:null
response:l
body:{name: "BadRequestError", code: "user_exists", description: "The user already exists.", statusCode: 400}
text:"{"name":"BadRequestError","code":"user_exists","description":"The user already exists.","statusCode":400}"
While signup_on_sso_domain are not wrapped correctly:
e:
code:"This domain longreen.io has been configured for Single Sign On and you can't create an account. Try signing in instead."
description:"This domain longreen.io has been configured for Single Sign On and you can't create an account. Try signing in instead."
original:null
response:l
body:{code: "signup_on_sso_domain", domain: "longreen.io", error: "This domain longreen.io has been configured for Si… can't create an account. Try signing in instead."}
text:"{"code":"signup_on_sso_domain","domain":"longreen.io","error":"This domain longreen.io has been configured for Single Sign On and you can't create an account. Try signing in instead."}"
The text was updated successfully, but these errors were encountered:
The error returned from signup is inconsistent which causes
response-handler.js
to set theerror.code
to the errors description instead of the actual code. This is true in Auth0.js v9.7.3 at least.On code line 45 of
response-handler.js
, the hierarchy of values withsignup_on_sso_domain
errors will produce a result of theerrObj.code
=This domain domain.com has been configured for Single Sign On and you can't create an account. Try signing in instead.
Line 45 in question:
Here are 2 errors as an example,
user_exists
errors are wrapped successfully:While
signup_on_sso_domain
are not wrapped correctly:The text was updated successfully, but these errors were encountered: