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

[FR] Email OTP challenge not handled by Authenticator component #5829

Open
4 tasks done
goatcube opened this issue Sep 24, 2024 · 3 comments
Open
4 tasks done

[FR] Email OTP challenge not handled by Authenticator component #5829

goatcube opened this issue Sep 24, 2024 · 3 comments
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature

Comments

@goatcube
Copy link

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.

In an app using the Authenticator component, when Advanced security is enabled for a Cognito user pool and email MFA is required, attempts to login result in the following error message being displayed:

An error occurred during the sign in process. EMAIL_OTP challengeName returned by the underlying service was not addressed.

What's the expected behaviour?

When there is an email OTP challenge, the user is prompted to enter the code that is sent via email and no error messages are displayed.

Help us reproduce the bug!

  1. Enable Advanced security for a Cognito user pool
  2. Require email messages MFA option
  3. In the app, enter email and password, click Sign in.

The following error message is displayed:

An error occurred during the sign in process. EMAIL_OTP challengeName returned by the underlying service was not addressed.

Code Snippet

// Put your code below this line.
import { Amplify } from "aws-amplify";

import { Authenticator } from "@aws-amplify/ui-react";
import "@aws-amplify/ui-react/styles.css";

import awsExports from "./aws-exports";
Amplify.configure(awsExports);

export default function App() {
  return (
    <Authenticator>
      {({ signOut, user }) => (
        <main>
          <h1>Hello {user.username}</h1>
          <button onClick={signOut}>Sign out</button>
        </main>
      )}
    </Authenticator>
  );
}

Console log output

No response

Additional information and screenshots

No response

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Sep 24, 2024
@calebpollman calebpollman changed the title Email OTP challenge not handled by Authenticator component [FR] Email OTP challenge not handled by Authenticator component Sep 24, 2024
@calebpollman calebpollman added feature-request Request a new feature Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Sep 24, 2024
@calebpollman
Copy link
Member

Hi @goatcube, thanks for opening this. Marking as a feature request for the Authenticator, adding support for Email OTP is something we are interested in

@calebpollman calebpollman added the pending-community-response Issue is pending response from the issue requestor or other community members label Sep 24, 2024
@github-actions github-actions bot added pending-maintainer-response Issue is pending response from an Amplify UI maintainer and removed pending-community-response Issue is pending response from the issue requestor or other community members labels Sep 24, 2024
@jordanvn jordanvn added pending-community-response Issue is pending response from the issue requestor or other community members and removed pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Sep 26, 2024
@msudol
Copy link

msudol commented Oct 3, 2024

Hi @goatcube, thanks for opening this. Marking as a feature request for the Authenticator, adding support for Email OTP is something we are interested in

I just ran into this exact same issue and found this thread on it. So, e-mail MFA isn't currently supported with amplify (authenticator)?

@github-actions github-actions bot added pending-maintainer-response Issue is pending response from an Amplify UI maintainer and removed pending-community-response Issue is pending response from the issue requestor or other community members labels Oct 3, 2024
@cwomack
Copy link
Member

cwomack commented Oct 7, 2024

@msudol, email MFA is not currently supported in the Authenticator component. However, the amplify-js repo is tracking this in a related feature request (Issue #13837). The support for this will likely be released sooner for the JS API's, but we'll update this issue with progress as it's made for the Authenticator component as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

6 participants
@goatcube @msudol @calebpollman @cwomack @jordanvn and others