Exchange the Connect Token
Benji Connect SDK
Exchange the Connect Token
Exchange the short-lived token returned from the Benji Connect SDK to a long-lived access token and refresh token using the Benji Platform API
POST
Exchange the Connect Token
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.
The
x-api-key header value to be used on this API is your partner API key, which can be generated through the dashboard.The string token passed as the first argument to your
onSuccess callback after a successful Connect flow (Methods & Events). This is the exchange token produced when the transport layer completes with FLOW_SUCCESS — pass it here, not the raw connect token used to initialize the Benji Connect SDK.Return values
The Benji Platform ID associated with the user.
Your system ID as specified on the Benji Platform.
An object representing the access_token, refresh_token to use when using the Benji Platform APIs as well as the access token expiry date. Once an access token expires, you can use the refresh token to obtain a new access token silently without requiring the user to authenticate again.
onSuccess metadata alongside the token.