Checkboxes for prior research
Describe the bug
This is the same bug as #7101, which has not been resolved yet.
Regression Issue
SDK version number
@aws-amplify/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v22.17.0
Reproduction Steps
- Deploy the backend with the following configuration (with EMAIL_OTP enabled):
// auth/resource.ts
export const auth = defineAuth({
loginWith: {
email: true
},
multifactor: {
mode: 'OPTIONAL',
sms: false,
},...
- Use the Amplify API to sign up (set a password and verify the email address with the confirmation code).
- Select
password reset
at the user on Amplify Web Console or call resetPassword()
api
Observed Behavior
For users without MFA enabled, password reset works both via API and the console.
For users with MFA enabled, attempting to reset the password via API or the console results in an error.
Expected Behavior
The verification code is emailed to the user.
Possible Solution
No response
Additional Information/Context
No response