Closed dperconti closed 2 years ago
Screenshot taken from AWS cognito user pool console:
The user titled RESET_REQUIRED
is the user that is causing the login method to error. After looking through issues, it looks like this has been missing since January of 2019: https://github.com/aws-amplify/amplify-js/issues/2602. Are there any plans to have this implemented in amplify-js?
Also potentially related: https://github.com/aws-amplify/aws-sdk-ios/issues/2298
If your user is in status of RESET_REQUIRED, you would have to use the forgot password flow. If you are getting this error message from Auth.signIn, you need to use the Auth.forgotPassword function instead to send the user a verification code that you can then pass to Auth.forgotPasswordSubmit along with a new password the user inputs. Then the user should be able to login using Auth.signIn.
Hi 👋 Closing this as we have not heard back from you. If you are still experiencing this issue and in need of assistance, please feel free to comment and provide us with any information previously requested by our team members so we can re-open this issue and be better able to assist you.
Thank you!
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server amplify-help
forum.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, GraphQL API
Amplify Categories
auth
Environment information
Describe the bug
Following documentation from here, it suggests that, when a new auth challenge is needed, the promise from
login
would resolve, providing the user object. This should occur when a new auth challenge is proposed. For example:After implementing this code, the promise is not resolved and instead rejected, resulting in the second to last line of just console logging the error. EG;
Expected behavior
The auth call to to
login
would result in a resolved promise, providing the user object and the new auth challenge.Reproduction steps
Code Snippet
Log output
Other Information
Response from request: