autoRenew is no longer working in latest Angular SDK 3.2.0
Closed this issue · 3 comments
martyngroberts commented
autoRenew is no longer working in latest version of Okta Angular SDK 3.2.0 which references okta-auth-js 5.2.1.
Steps to recreate;
- unauthenticated user browses to Angular app
- Browser redirects to Okta sign-in page
- User logs in with username and password
- ID token, access token and refresh token returned
- Access token lifetime set to 5 mins
- User waits 5 mins
- Network trace shows no new API calls to Okta in this time (eg. /token)
- Access token expiry time passes (nothing happens in browser)
- User must interact with app to refresh token
In previous version of SDK (3.1.0), the autoRenew is working
oleksandrpravosudko-okta commented
Thanks for reporting this @martyngroberts - we will have this investigated and fixed.
Internal Ref: OKTA-411446
oleksandrpravosudko-okta commented
It looks like token expiration handler is not set during login redirect - #48 (WIP) should address this issue.
shuowu commented
@martyngroberts The fix is release in version 3.2.1. Closing the issue, feel free to re-open it if the issue still exists.