Bug: Refreshing access token
In the case when refreshing the access token from refresh token fails, the web app enters a loop where it keeps trying to call /oauth/token/refresh. When that fails, it immediately makes a new call.
In the left case, the call failed because of an invalid HTTP request origin, on the right because I took staging.genesys-pgr.org offline:
The issue is in how we handle the refreshing using setTimeout()
. I already pushed some changes to main, but this needs behavior to be reviewed.