Optional
access?: AuthAccessGeneratorConfigure access to auth for other Amplify resources
Optional
accountRecovery?: Determined 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
groups?: string[]Provide 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?: ExternalProviderSpecificFactoryPropsConfigure 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
multifactor?: MFAConfigure whether users can or are required to use multifactor (MFA) to sign in.
Optional
name?: stringSpecify a name which will aid in generating resource names.
Optional
senders?: {Configure email sender options
Optional
triggers?: Partial<Configure custom auth triggers
Optional
userAttributes?: UserAttributesThe 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
Provide the settings that will be used for authentication.