The above config does not seem to be working properly.
To verify whether autoRenew is working after enabling it in Okta. I tried simulating or observing a token nearing expiration and checking for its automatic renewal – but that doesn’t seem to be working.
The code below does not renew the token at all. What could be the issue?
Can you instead of forcing the token expiry, tryo check with shorter expiry of token using custom auth servers ? Autorenew is a service see docs here - GitHub - okta/okta-auth-js: The official js wrapper around Okta's auth API
That means the service decides if the renewal mechanism needs to be triggered. I would just test it under normal circumstances first.
I tried a small example for tab inactivity, and even that doesn’t seem to renew the token even once. Can you share some links for reference with a complete example?