Skip to content
v2.274.0

AutoVerifiedAttrs Struct ​

Attributes that can be automatically verified for users in a user pool.

Example ​

ts
new cognito.UserPool(this, 'myuserpool', {
  // ...
  // ...
  signInAliases: { username: true, email: true },
  autoVerify: { email: true, phone: true },
});

Properties ​

emailbooleanemailboolemailBooleanEmailboolEmail*bool= true, if email is turned on for …#
Whether the email address of the user should be auto verified at sign up.

Note: If both email and phone is set, Cognito only verifies the phone number. To also verify email, see here - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html

default

Default: true, if email is turned on for signIn. false, otherwise.

phonebooleanphoneboolphoneBooleanPhoneboolPhone*bool= true, if phone is turned on for …#
Whether the phone number of the user should be auto verified at sign up.
default

Default: true, if phone is turned on for signIn. false, otherwise.