Documentation Index
Fetch the complete documentation index at: https://docs.withbenji.com/llms.txt
Use this file to discover all available pages before exploring further.
Installing the Benji Connect SDK
The Benji Connect SDK can be added to your application by including the SDK script in your HTML head.How the Benji Connect SDK loads Connect
When you callopen(), the Benji Connect SDK creates a modal overlay and loads the Connect experience inside it.
Initializing the Benji Connect SDK
The Benji Connect SDK is initialized with the following parameters:Environment for the Connect flow:
development | sandbox | production.Connect token from the Create Token API.
Called when the flow completes successfully (
FLOW_SUCCESS). Receives the
exchange token and metadata.Called when the user leaves the Connect UI (
FLOW_EXIT), whether or not
onSuccess ran.Called when an error is reported from the Connect flow (
ERROR).Called for mid-flow and auxiliary events (e.g.
AUTH_SUCCESS). See Methods &
Events.@benji-money/connect-sdk for autocomplete.
await sdk.open() (see Methods & Events).