Hello,
We are currently using the okta-auth-js SDK for our angular app. We have set the autoRenew option to true so that access tokens for our users will be automatically renewed when nearing expiration. I have verified that the background timer is functioning properly and is sending the initial request to renew to the /authorize endpoint.
In our okta application sign on settings, we are requiring all users to be challenged for MFA. For now, we are requiring once a week.
When a user logs in and are prompted for the MFA challenge, they are presented with the option to don’t challenge for X days:
If they check this option, everything functions perfectly with autoRenew. If they DON’T check this option, the autoRenew process fails to get a new token. When a token is nearing expiration, the okta-auth-js service attempts to make a request to the /authorize endpoint but fails to get new access tokens. The response from the /authorize endpoint is a page that says either authentication is required or a successful challenge is needed.
I have verified this behavior when I don’t check this option. The very next API call I make to my service fails with a 401 because the new access token was never received.
Is this a known issue? Is there a workaround?