-
Notifications
You must be signed in to change notification settings - Fork 74
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
Custom Auth Flow With Bad Answer Infinite Loop #208
Comments
Hi mate. Renew
|
Basically every time you need to provide a custom answer, the function that you pass to |
|
Thanks that works! |
Hi Otto, I have another question. |
So you mean after all 3 attempts have been wrong? Cognito will throw the generic error "invalid username or password" then. The signIn promise will reject at that point. You can catch it then, and display an appropriate message as you see fit. |
Hi guys,
I've been fiddling around with this package and I don't know how to handle the error when a bad code is submitted since the auth flow just loops infinitely here's my pseudo example in Angular.
Is there a way to catch the response and look at the challenge name to check if it's still
ChallengeName
to somehow abort but keep the session alive to make another retry?, what would be the best approach?The text was updated successfully, but these errors were encountered: