react-plaid-link
react-plaid-link copied to clipboard
Undocumented configuration attribute `selectAccount`
I can go into a long winded story of how I figured this out, but there appears to be an undocumented configuration attribute keyed selectAccount
when using the link token configuration object.
If that key is omitted when creating the config then the Plaid script sends a request to https://production.plaid.com/link/workflow/start
with the object link_token_configuration
in the payload containing the attribute enable_account_select
set to false
.
If that key is included in the config, the same request sends that attribute set to true
.
Notably that attribute does have an effect on the flow in that when the user is authenticated, they are unable/able to select a single account (respectively).
A few questions/concerns stem from that:
- Should this be documented? It obviously has an effect on the result here.
- Why is this attribute effecting the flow? I thought that was supposed to be designated based on the link customization as specified in the docs here https://plaid.com/docs/link/customization/#account-select?