OKTA Token is renewing sporadically with latest okta.js library and does not renew in the background

For some reason the okta.js library is sporadically calling the getWithRedirect method in the JS file of the same name, which performs a window.location.assign() which is triggering a browser:unload event as a result. There seems to be no actual pattern, doesn’t appear to be in line with the expiration time on the token nor the expiryEarlySeconds value in the initial config object.

And then when this happens, the token does not renew in the background. Is this common?

Hi there,

Thank you for writing to Okta Dev Forum. My name is Akash, from Okta.

Please note that this is not an expected or not a common behaviour

Could you please run our sample applications and check you are able to reproduce the issue? - okta-auth-js/samples/generated at master · okta/okta-auth-js · GitHub