Infinite login request loop in web app after token timeout
Summary
The web app sometimes gets stuck in an infinite request loop when attempting to refresh an expired token.
Steps to reproduce
- Log in to OpenTalk, e.g. by opening the dashboard
- Close all browser windows from that OpenTalk instance, so that the token refresh can not happen
- Wait for 5 minutes
- Open the dashboard in a new browser window with the dev console open
- Observe one request to
/v1/users/mefailing with a401HTTP status - Observe many requests to the
openid-connect/tokenendpoint of the OIDC provider, each issues a valid token, but it appears that the frontend doesn't use that, being stuck in a high-frequency infinite loop