interface MfaSecondFactor
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cognito.MfaSecondFactor |
![]() | software.amazon.awscdk.services.cognito.MfaSecondFactor |
![]() | aws_cdk.aws_cognito.MfaSecondFactor |
![]() | @aws-cdk/aws-cognito » MfaSecondFactor |
The different ways in which a user pool can obtain their MFA token for sign in.
Example
new cognito.UserPool(this, 'myuserpool', {
// ...
mfa: cognito.Mfa.REQUIRED,
mfaSecondFactor: {
sms: true,
otp: true,
},
});
Properties
Name | Type | Description |
---|---|---|
otp | boolean | The MFA token is a time-based one time password that is generated by a hardware or software token. |
sms | boolean | The MFA token is sent to the user via SMS to their verified phone numbers. |
otp
Type:
boolean
The MFA token is a time-based one time password that is generated by a hardware or software token.
sms
Type:
boolean
The MFA token is sent to the user via SMS to their verified phone numbers.