-
-
Notifications
You must be signed in to change notification settings - Fork 442
Open
Labels
apiIssues that require some work on the API (https://github.com/opencollective/opencollective-api)Issues that require some work on the API (https://github.com/opencollective/opencollective-api)frontend
Description
EUA with GoCardless is valid for 180 days.
We can:
- Anticipate that and set an EUA somewhere on the connected account
- Handle the 401 response that we get when trying to sync an account with expired EUA:
{
status: 401,
statusText: 'Unauthorized',
data: {
summary: 'End User Agreement (EUA) xxxxxx-xxxx-xxxx-xxxx-xxxx has expired',
detail: 'EUA was valid for 180 days and it expired at 2026-01-27 12:13:55.543011+00:00. The end user must connect the account once more with new EUA and Requisition',
status_code: 401
}
}Based on that, the interface should have:
- On the bank accounts list, update the account status to "Authorization Expired"
- Add two columns: "Connected At" (= createdAt) and "Authorization validity" (∞ if none defined, the date otherwise)
- Show an alert icon, with a tooltip message, next to this "Authorization validity" if it's expired or about to expire.
- Send a notification email when it expires.
- A clearer error message when clicking on "Force synchronize". It's currently an obscure 401 error.
All these should lead toward the Actions > Settings > Advanced > Reconnect action, to let host admins renew the authorization.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
apiIssues that require some work on the API (https://github.com/opencollective/opencollective-api)Issues that require some work on the API (https://github.com/opencollective/opencollective-api)frontend