Skip to content

support email mfa #2159

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

Open
josefaidt opened this issue Oct 28, 2024 · 5 comments
Open

support email mfa #2159

josefaidt opened this issue Oct 28, 2024 · 5 comments
Labels
auth Issue pertaining to Amplify Auth feature-request New feature or request good first issue Good for newcomers

Comments

@josefaidt
Copy link
Contributor

Environment information

System:
  OS: macOS 14.7
  CPU: (10) arm64 Apple M1 Pro
  Memory: 72.84 MB / 32.00 GB
  Shell: /opt/homebrew/bin/fish
Binaries:
  Node: 22.8.0 - ~/.local/state/fnm_multishells/43849_1730131892294/bin/node
  Yarn: undefined - undefined
  npm: 10.8.2 - ~/.local/state/fnm_multishells/43849_1730131892294/bin/npm
  pnpm: 9.12.0 - ~/.local/state/fnm_multishells/43849_1730131892294/bin/pnpm
NPM Packages:
  @aws-amplify/auth-construct: Not Found
  @aws-amplify/backend: 1.5.1
  @aws-amplify/backend-auth: Not Found
  @aws-amplify/backend-cli: 1.3.0
  @aws-amplify/backend-data: Not Found
  @aws-amplify/backend-deployer: Not Found
  @aws-amplify/backend-function: Not Found
  @aws-amplify/backend-output-schemas: Not Found
  @aws-amplify/backend-output-storage: Not Found
  @aws-amplify/backend-secret: Not Found
  @aws-amplify/backend-storage: Not Found
  @aws-amplify/cli-core: Not Found
  @aws-amplify/client-config: Not Found
  @aws-amplify/deployed-backend-client: Not Found
  @aws-amplify/form-generator: Not Found
  @aws-amplify/model-generator: Not Found
  @aws-amplify/platform-core: Not Found
  @aws-amplify/plugin-types: Not Found
  @aws-amplify/sandbox: Not Found
  @aws-amplify/schema-generator: Not Found
  aws-amplify: 6.6.7
  aws-cdk: 2.164.1
  aws-cdk-lib: 2.164.1
  typescript: 5.6.3
AWS environment variables:
  AWS_PROFILE = josef
  AWS_REGION = us-east-1
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Describe the feature

Amazon Cognito announced support for email-based multifactor with one-time passwords

// amplify/auth/resource.ts
import { defineAuth } from "@aws-amplify/backend"

export const auth = defineAuth({
  loginWith: {
    email: true,
  },
  multifactor: {
    mode: "REQUIRED",
    email: true,
    // or
    // email: {
    //   subject: "verify yourself",
    //   message: (code) => `here's your code: ${code}`
    // }
  },
})

Use case

n/a

@josefaidt josefaidt added pending-triage Incoming issues that need categorization feature-request New feature or request auth Issue pertaining to Amplify Auth and removed pending-triage Incoming issues that need categorization labels Oct 28, 2024
@HarrisonPace
Copy link

HarrisonPace commented Nov 28, 2024

Is there any documentation available for Amplify Gen1 customers?

We would like to enable Email OTP in our Amplify Gen1 App possibly by using an override until it's available?

Also will this feature be supported in Amplify Gen1 or just Gen2 planned?

@stMerlHin
Copy link

+1

@MattWlodarski
Copy link

It would be really nice if amplify can support this so users can choose between SMS and email for receiving their MFA code. It would be nice if you can add deliveryType to the confirmSignIn input param so Amplify knows how to send the MFA code.

@LukasPokryvka
Copy link

Hello, any update on this? Would be great if we could implement this in our app :)

@cdwijayarathna
Copy link

Does this ticket cover supporting this in the amplify react ui or should that be a different ticket under amplify-ui project? Is there an existing ticket under amplify-ui to support this in react ui?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issue pertaining to Amplify Auth feature-request New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants