SSR access token from cookie
The domain for cookies on sandbox and beta is conflicting, so sandbox is using the access_token from beta when communicating with sandbox-genesys-pgr.org:
SSR fails with Call failed. Err: Error: Request failed with status code 401 because the access token is valid for beta, not for sandbox. So testing just for expiry time is not enough.
In case when user provides invalid access_token, the SSR should reset and send back valid (guest) access tokens to the client.