The client-side widget for secure account connections
Truv Bridge is a drop-in client-side widget that handles the entire account connection flow: employer/bank search, credential entry, multi-factor authentication, and error handling. You embed it in your frontend; Truv manages the UI.Bridge is used in two ways:
The Bridge Widget uses a token exchange pattern to keep credentials secure. Your backend handles all secret-bearing API calls; your frontend only touches the bridge_token and public_token.
bridge.close() accepts an optional { mode } parameter that controls which frames are dismissed.
mode
Behavior
'all' (default)
Closes the widget unconditionally. Equivalent to bridge.close().
'onlyModal'
Closes only frames rendered as a modal/dialog. Inline frames are left in place.
bridge.close(); // closes everythingbridge.close({ mode: 'all' }); // same as bridge.close()bridge.close({ mode: 'onlyModal' }); // dismisses modal layers only
Behavior matrix:
isOrder
position.type
mode: ‘all’
mode: ‘onlyModal’
false
dialog
Closes the modal Bridge
Closes the modal Bridge
false
inline
Removes the inline Bridge from the page
No-op
true
dialog
Closes the modal order page and the inner connection widget
Closes the modal order page and the inner connection widget
true
inline
Removes the inline order page and closes the inner connection widget
Closes the inner connection widget; leaves the inline order page mounted
Use mode: 'onlyModal' when your app needs to display its own modal (for example, a session-timeout dialog) on top of an inline Embedded Order. Without dismissing the inner connection widget first, your dialog would be unreachable behind it.
Errors surface through onEvent with type=ERROR and an ErrorData payload — there is no separate onError callback. See Bridge events for the full list of event types and payloads.
Customize Bridge appearance through Customization Templates in the Dashboard: company branding, search experience, success pages, document upload settings, and privacy agreements.