AuthFlow Struct
Types of authentication flow.
Example
ts
const userPool = new cognito.UserPool(this, 'myuserpool', {
signInPolicy: {
allowedFirstAuthFactors: {
password: true, // password authentication must be enabled
emailOtp: true, // enables email message one-time password
smsOtp: true, // enables SMS message one-time password
passkey: true, // enables passkey sign-in
},
},
});
// You should also configure the user pool client with USER_AUTH authentication flow allowed
userPool.addClient('myclient', {
authFlows: { user: true },
});
Properties
adminUserPasswordbooleanadmin_user_passwordbooladminUserPasswordBooleanAdminUserPasswordboolAdminUserPassword*bool= false#Enable admin based user password authentication flow.
Enable custom authentication flow.
Enable Choice-based authentication.
Enable auth using username & password.
Enable SRP based authentication.