Type Alias CognitoChallengeAnswer
CognitoChallengeAnswer:
| { challenge: "PASSWORD"; password: string }
| { challenge: "SOFTWARE_TOKEN_MFA"; code: string }
| { challenge: "MFA_SETUP" }
| { challenge: "WEB_AUTHN"; credential: string }
| { challenge: "NEW_PASSWORD_REQUIRED"; newPassword: string }
| { answer: "PASSWORD"; challenge: "SELECT_CHALLENGE"; password: string }
| { answer: "WEB_AUTHN"; challenge: "SELECT_CHALLENGE" }
Type Declaration
- { challenge: "PASSWORD"; password: string }
- { challenge: "SOFTWARE_TOKEN_MFA"; code: string }
- { challenge: "MFA_SETUP" }
- { challenge: "WEB_AUTHN"; credential: string }
- { challenge: "NEW_PASSWORD_REQUIRED"; newPassword: string }
- { answer: "PASSWORD"; challenge: "SELECT_CHALLENGE"; password: string }
- { answer: "WEB_AUTHN"; challenge: "SELECT_CHALLENGE" }
An answer to the challenge a CognitoAuthStep named.