react-plaid-link icon indicating copy to clipboard operation
react-plaid-link copied to clipboard

Undocumented configuration attribute `selectAccount`

Open jbean96 opened this issue 2 years ago • 0 comments

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:

  1. Should this be documented? It obviously has an effect on the result here.
  2. 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?

jbean96 avatar Jun 30 '22 22:06 jbean96