forceNewpassword authState never set in useAuthenticator context #4774
Labels
Authenticator
An issue or a feature-request for an Authenticator UI Component
feature-request
Request a new feature
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
No response
Please describe your bug.
Authenticator
component.useAuthenticator
hookI have a user in a user pool whose temporary password has expired and the user confirmation status is set to Force change password.
When I use the
Authenticator
component to sign in with the user email I see an error in theAuthenticator
component stating Temporary password has expired and must be reset by an administrator.However, the context object passed to the
useAuthenticator
hook never gets anauthState
that is equal toforceNewPassword
or any other state that I can use to handle the situation. It remainsunauthenticated
.What's the expected behaviour?
The context object should have a state that represents the user state in cognito, specifically in this case that forceNewPassword.
Help us reproduce the bug!
Code Snippet
Console log output
No response
Additional information and screenshots
package.json
The text was updated successfully, but these errors were encountered: