Learn how to add adaptive MFA to your Cognito login flow using Authsignal.
cognitoAuth
so it matches the value in your lambda code."CUSTOM_CHALLENGE"
step is delegated to Authsignal.
state
field in the response to see whether our rule has determined that a challenge is required for the action.
In addition to the url
for the pre-built UI, we will also pass this state
value along with a token
back to our app as public challenge parameters.
state
param to determine whether MFA is required.
event.response.answerCorrect
to true if the state
of the action is either "CHALLENGE_SUCCEEDED"
(because the user successfully completed an MFA step) or "ALLOW"
(because the user wasn’t required to complete MFA).