Frontend fails to renew the access token after a network error
Steps to reproduce it:
- decrease the
ACCESS_TOKEN_LIFETIME
to 10 seconds (not needed, but it saves you time) - open the developer tools
- switch from
No throttling
toOffline
in the network tab before a call to thetoken-refresh
endpoint is made - notice the API call to the
token-refresh
endpoint fails - switch back from
Offline
toNo throttling
- see UI is broken and it needs a refresh to start working again.