This article outlines how to simulate MFA and error flows within Plaid Link. This must be done within the Sandbox environment.
Simulating MFA
You can simulate the various MFA flows within Plaid Link by using the following passwords in conjunction with the Sandbox username, user_good
:
mfa_device
: simulate a device MFA flow, such as a code that is sent to your user's phone via SMSmfa_questions_<n>_<m>
: simulate a questions-based MFA flow – you can control the number of rounds and questions your user must answer by adjusting then
andm
values, respectivelymfa_selections
: simulate a selections-based MFA flow where your user is asked a single security question and given several answer options to select frommfa_selections_<n>_<m>_<o>
: simulate a multiple-selections MFA flow where your user is asked multiple security questions and given several answer options to select from for each question. The number of rounds, questions, and answer options can be controlled by adjusting then
,m
, ando
values, respectively.
Simulating errors
You can simulate an ITEM_ERROR
or INSTITUTION_ERROR
that your user could encounter during the Plaid Link flow. To do so, modify the password accordingly:
error_[ERROR_CODE]
For example, if you want to simulate an INVALID_CREDENTIALS
error, you must use the following password: error_INVALID_CREDENTIALS