Amplify Toolbox
    Preparing search index...
    MFASmsSettings: boolean | { smsMessage: (createCode: () => string) => string }

    If true, or if a settings object is provided, the MFA token is sent to the user via SMS to their verified phone numbers.

    Type declaration

    • boolean
    • { smsMessage: (createCode: () => string) => string }
      • smsMessage: (createCode: () => string) => string

        The SMS message template sent during MFA verification. Use the code parameter in the template where Cognito should insert the verification code.

        smsMessage: (createCode: string) => Your authentication code is ${createCode()}.