Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit signup error is user_exists #2321

Closed
thduttonuk opened this issue Apr 20, 2023 · 3 comments
Closed

Emit signup error is user_exists #2321

thduttonuk opened this issue Apr 20, 2023 · 3 comments

Comments

@thduttonuk
Copy link
Contributor

thduttonuk commented Apr 20, 2023

Can something like authorization_error be emitted if user_exists on signup? This is returned as a 400 from the API

{"name":"BadRequestError","code":"user_exists","description":"The user already exists.","statusCode":400}

This is needed so we can show a different message when a username is already in use.

{"name":"BadRequestError","code":"user_exists","description":"The user already exists (username: test123).","statusCode":400}

I can only see login errors emitted.

'blocked_user',

@thduttonuk thduttonuk changed the title Emit if error is user_exists Emit authorization_error if error is user_exists Apr 20, 2023
@thduttonuk thduttonuk changed the title Emit authorization_error if error is user_exists Emit signup error is user_exists Apr 20, 2023
@thduttonuk thduttonuk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
@thduttonuk
Copy link
Contributor Author

I see signup error exists, found this in the code, not the docs

@stevehobbsdev
Copy link
Contributor

Thanks @thduttonuk, can you share the specific docs you were looking at and I can get them updated?

@thduttonuk
Copy link
Contributor Author

@stevehobbsdev I was looking at the .on section https://auth0.com/docs/libraries/lock/lock-api-reference#on-

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants