Clear or Refresh token
Summary:
Hi team,
We have a PWA in VBCS, in which we make calls to APEX Restful Services.
We have created a Connection Service (apex ords) using OAuth 2.0 (Client Credentials), the problem is that the token generated by VBCS is configured to expire in 60 Minutes. Therefore, after 1 hour, the token expires, even though the UI created with VBCS is still active to the user, so after 60 minutes, when calling the APEX endpoints return a 401 Unauthorized error.
Content (please ensure you mask any confidential information):
We solved the problem of showing the active UI to the user after timeout or expired token by adding a countimer (using a JS function), with which after 40 minutes of logging in, we notified the user that the session will be automatically closed in 5 minutes.