Skip to content

Resend Code on SignIn doesn't resend the code #6954

Description

@guy-ecton

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?

Vite

What browsers are you seeing the problem on?

No response

Which region are you seeing the problem in?

No response

Please describe your bug.

When a user has their MFA enabled (lets say SMS), and they perform a sign-in, they get the view of entering the OTP, and there is a "Resend Code" button being rendered (All by the Authenticator component).

However, as I understand from AWS Support, resending the code during sign-in is not actually supported, and user is expected to go via initAuth again. (When I click the Resend Code I get an error password is required to signIn).

Am I missing anything?
I mean, Amplify UI renders this button for a reason, right?
What is the quickest workaround to have this button re-init the auth flow, either programmatically, or by redirecting the user back to entering email+password?

Also, is there an ETA for implementing this ability?
Thanks

What's the expected behaviour?

Resend Code during sign-in should, in face, resend the OTP code

Help us reproduce the bug!

  1. Have a user with MFA set (like SMS)
  2. Sign in
  3. Click Resend Code button
  4. password is required to signIn is shown, and no new code is sent

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

"@aws-amplify/ui-react": "^6.15.3"
"aws-amplify": "^6.16.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions