Okta Auth JS is continuously refreshing tokens even when the user is inactive on the browser tab

We’ve observed that @okta/okta-auth-js continues to refresh tokens in the background even when the user is inactive or the browser tab is not in focus. While this behavior aligns with the current configuration, it doesn’t suit our use case — we want to avoid unnecessary token refreshes during periods of user inactivity to conserve resources. Ideally, token renewal should only occur when the user becomes active again (e.g., the tab is focused). We’re looking for the appropriate configuration to disable background token refresh and trigger it only when user activity resumes.

Check out the information here about active vs passive autoRenew to see if passive autoRenew would be a good fit: okta-auth-js/docs/autoRenew-notice.md at master · okta/okta-auth-js · GitHub