Handle expired subscriptions
In the rare case where a user's subscription fails to auto-renew, the server will return an error response for the /refresh
endpoint.
We need to handle this case by presenting subscription options to let the user renew.
The /refresh
endpoint already returns HTTP 401
when the user needs to re-authenticate, so it's easy enough to extend this to UIA. Once the Swiclops backend support is there, we can add the handler in Circles to set the Matrix session's active UIA session based on the /refresh
response.