Skip to content

AccountRecovery

Open in ChatGPTOpen in Claude

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:491

How will a user be able to recover their account?

When a user forgets their password, they can have a code sent to their verified email or verified phone to recover their account. You can choose the preferred way to send codes below. We recommend not allowing phone to be used for both password resets and multi-factor authentication (MFA).

https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html

EMAIL_AND_PHONE_WITHOUT_MFA: 0

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:495

Email if available, otherwise phone, but don’t allow a user to reset their password via phone if they are also using it for MFA


EMAIL_ONLY: 2

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:503

Email only


NONE: 5

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:515

None – users will have to contact an administrator to reset their passwords


PHONE_AND_EMAIL: 4

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:511

(Not Recommended) Phone if available, otherwise email, and do allow a user to reset their password via phone if they are also using it for MFA.


PHONE_ONLY_WITHOUT_MFA: 3

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:507

Phone only, but don’t allow a user to reset their password via phone if they are also using it for MFA


PHONE_WITHOUT_MFA_AND_EMAIL: 1

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:499

Phone if available, otherwise email, but don’t allow a user to reset their password via phone if they are also using it for MFA

© 2026 Axis Tech. Powered by axis-tech.co.