Skip to content

Conversation

@ahmedhamouda78
Copy link
Member

Problem

Add passwordless authentication configuration to the generated amplify_outputs.json file to enable frontend libraries to configure passwordless authentication flows (Email OTP, SMS OTP, and WebAuthn) and specify the preferred authentication challenge.

Issue number, if available:

Related to #3053

Changes

This PR adds passwordless configuration and preferred challenge to the client config output:

  • Added passwordlessOptions field to auth output schema v1
  • Added preferredChallenge prop to AuthProps (accepts 'EMAIL_OTP' | 'SMS_OTP' | 'PASSWORD' | 'WEB_AUTHN', defaults to 'EMAIL_OTP')
  • Outputs emailOtpEnabled, smsOtpEnabled, webAuthn configuration, and preferredChallenge

Corresponding docs PR, if applicable:

N/A

Validation

  • Added unit test

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ahmedhamouda78 ahmedhamouda78 requested review from a team as code owners December 8, 2025 19:17
@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2025

🦋 Changeset detected

Latest commit: 4777f5d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@aws-amplify/backend-output-schemas Minor
@aws-amplify/auth-construct Minor
@aws-amplify/client-config Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ahmedhamouda78 ahmedhamouda78 force-pushed the feat/passwordless-auth-config branch from 55780b8 to 876d2f8 Compare December 8, 2025 19:59
@ahmedhamouda78 ahmedhamouda78 added run-e2e Label that will include e2e tests in PR checks workflow and removed run-e2e Label that will include e2e tests in PR checks workflow labels Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant