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

"authorization_error" event is not triggering the "too_many_attempts" error #2589

Open
4 tasks done
farlinahrul opened this issue Dec 12, 2024 · 0 comments
Open
4 tasks done
Labels
bug This points to a verified bug in the code

Comments

@farlinahrul
Copy link

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I am using auth0-lock v11.34.1 with React. I want to capture the too_many_attempts error from this event:

this.lock.on('authorization_error', (error) => {
      console.error("authorization_error event: ", error);  // **`too_many_attempts` error is not being logged in this console**
      });

Is it expected in this case that the too_many_attempts error is not being passed?

Reproduction

  1. add
this.lock.on('authorization_error', (error) => {
      console.log("authorization_error event: ", error);  // **`too_many_attempts` error is not being logged in this console**
      });
  1. try login with wrong email/password until get too_many_attempts error in network

Additional context

No response

Lock version

11.34.1

Which browsers have you tested in?

Chrome

@farlinahrul farlinahrul added the bug This points to a verified bug in the code label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant