Benji Connect
Exchange the Connect Token
Exchange the short lived toke returned from the SDK to a long living access token and refresh token using the Benji Platform API
POST
The Bearer token to be used on this API is your partner access token
The token received from the onSuccess callback method specified as part of the sdk initialization flow
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 tpken to obtain a new access token silently without requiring the user to authenticate again.
Access token are typically valid for 90 days. You can refresh an access token either before it expires proactively, or after calling an API and getting an expired_token 401 status code
Make sure to exchange the token returned by the Connect SDK promptly following a succesfull user connect flow. The exchange token is valid for 15 minutes after the succesfull callback flow