## Collect Financial Connections Accounts

Use `stripe.collectFinancialConnectionsAccounts` in the [Add a Financial Connections Account to retrieve data](https://docs.stripe.com/financial-connections/other-data-powered-products.md) flow. When called, it will load the [Authentication Flow](https://docs.stripe.com/financial-connections/fundamentals.md#authentication-flow), an on-page modal UI which allows your user to securely link their external financial account(s).

- `options`
  - `clientSecret` The `client_secret` of the [Financial Connections Session](https://docs.stripe.com/api/financial_connections/session.md).

### Example

```javascript title="Collect Financial Connections Accounts"
const stripe = Stripe('pk_test_...');

// To collect financial connections accounts, you need a Financial Connections Session client_secret.
// You can create one using the Stripe API:
// curl -u "sk_test_..." \
//   https://api.stripe.com/v1/financial_connections/sessions \
//   -d "customer_client_secret"="cus_..."
const clientSecret = '{{ FINANCIAL_CONNECTIONS_SESSION_CLIENT_SECRET }}';

stripe.collectFinancialConnectionsAccounts({ clientSecret })
  .then(function(result) {
    // Handle result.error
  });
```