- The provided API credentials for eg: API keys, Refresh token has expired.
- The access token or refresh token of the end customer has been revoked.
- The end customer uninstalls the application.
- The user deletes the application being used by their customer.
Handling re-auth
When any of the above mentioned scenarios occur, Cobalt sets a flagreauth-required
for the application integration of the customer. You could find this
in the application response object. See below -
cURL
Response

reauth_required
field in the application list response,
and use the .connect()
method to connect to the application again.
Re-authentication

Getting notified using webhook.
Cobalt supports webhook subscription for an event when an application auth gets expired for a linked account. You would need to subscribe for the eventConnection Expired
.
Cobalt would then notify you whenever an app connection expires and provide details about the application and the account.
Webhook payload

Checkout Cobalt webhooks for more details.