Skip to main content
Bridge Widget flow provides direct control over payroll connections, specifically designed for Deposit Switch and Paycheck Linked Lending use cases.
Bridge Widget is only for Deposit Switch and Paycheck Linked Lending.For Income & Employment, Assets, or Employment verification, use Embedded Orders instead.

When to Use Bridge Widget


Token flow

The Widget-only flow uses a three-token exchange to securely connect users:

Implementation

Step 1: Create a user [Server-side]

Create a user to associate with this connection.
Save the id from the response to use in the next step.

Step 2: Create a bridge token [Server-side]

Create a bridge token with the user ID and your product configuration. Pass the account details for the destination bank account.

Step 3: Initialize Bridge Widget [Client-side]

Pass the bridge_token to Truv Bridge. When the user connects successfully, Bridge returns a public_token via the onSuccess callback.
See Bridge Events for all callback events, error codes, and payload shapes.

Step 4: Exchange token and retrieve data [Server-side]

Exchange the public_token for a persistent access_token:
Store the returned access_token securely. Use it to fetch data and manage the connection.

Webhooks

Listen for these server-side webhook events to track connection status:
  • task-status-updated with status: done — task completed successfully
  • task-status-updated with error statuses — connection failed (see Task lifecycle)
See Webhooks for the full event reference.

Best practices

  • Always wait for task-status-updated webhook with status: done before treating a connection as complete
  • Handle errors with user-friendly messaging
  • Store link_id and access_token for future reference
View best practices guide →

Next steps

Direct Deposit Switch

Direct Deposit Switch integration for Retail Banking

Paycheck-Linked Loans

Complete Paycheck Linked Lending setup guide

Bridge Events

Client-side event types and error codes

Best Practices

Widget-only implementation guidelines