SignInPolicy Struct
Sign-in policy for User Pools.
Example
ts
new cognito.UserPool(this, 'myuserpool', {
signInPolicy: {
allowedFirstAuthFactors: { password: true, passkey: true },
},
passkeyRelyingPartyId: 'auth.example.com',
passkeyUserVerification: cognito.PasskeyUserVerification.REQUIRED,
});
Properties
allowedFirstAuthFactorsoptionalAllowedFirstAuthFactorsallowed_first_auth_factorsoptionalAllowedFirstAuthFactorsallowedFirstAuthFactorsoptionalAllowedFirstAuthFactorsAllowedFirstAuthFactorsoptionalAllowedFirstAuthFactorsAllowedFirstAuthFactorsoptionalAllowedFirstAuthFactors#The types of authentication that you want to allow for users' first authentication prompt.
Default: Password only