Optional
accountDetermined how a user is able to recover their account by setting the account recovery setting.
If no setting is provided, a default will be set based on the enabled login methods. When email and phone login methods are both enabled, email will be the default recovery method. If only email or phone are enabled, they will be the default recovery methods.
"EMAIL_ONLY"
For details about each option, see below.
'EMAIL_AND_PHONE_WITHOUT_MFA' - Email if available, otherwise phone, but does not allow a user to reset their password via phone if they are also using it for MFA
'PHONE_WITHOUT_MFA_AND_EMAIL' - Phone if available, otherwise email, but does not allow a user to reset their password via phone if they are also using it for MFA
'EMAIL_ONLY' - Email only
'PHONE_ONLY_WITHOUT_MFA' - Phone only, but does not allow a user to reset their password via phone if they are also using it for MFA
'PHONE_AND_EMAIL' - (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.
'NONE' - None – users will have to contact an administrator to reset their passwords
Optional
groupsProvide a list of user group names to create UserPoolGroups.
Group precedence is determined by the ordering of the groups in the list.
Specify how you would like users to log in. You can choose from email, phone, and even external providers such as LoginWithAmazon.
Optional
email?: EmailLoginEmail login options.
If true, email login will be enabled with default settings. If settings are provided, email login will be enabled with the specified settings.
Optional
externalProviders?: ExternalProviderOptionsConfigure OAuth, OIDC, and SAML login providers
Optional
phone?: PhoneNumberLoginPhone number login options.
If true, phone number login will be enabled with default settings. If settings are provided, phone number login will be enabled with the specified settings.
Optional
multifactorConfigure whether users can or are required to use multifactor (MFA) to sign in.
Optional
nameSpecify a name which will aid in generating resource names.
Optional
Internal
outputOptional
sendersConfigure sending behaviors for Emails or SMS messages sent from your auth resource
Optional
email?: Configure Cognito to send emails from SES or a custom message trigger SES configurations enable the use of customized email sender addresses and names Custom message triggers enable the use of third-party email providers when sending email notifications to users
Optional
sms?: UserPoolSnsOptions | CustomSmsSenderOptional
userThe set of attributes that are required for every user in the user pool. Read more on attributes here - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
Input props for the AmplifyAuth construct