Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoRenew is no longer working in latest Angular SDK 3.2.0 #47

Closed
martyngroberts opened this issue Jul 13, 2021 · 3 comments
Closed

autoRenew is no longer working in latest Angular SDK 3.2.0 #47

martyngroberts opened this issue Jul 13, 2021 · 3 comments

Comments

@martyngroberts
Copy link

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;

  1. unauthenticated user browses to Angular app
  2. Browser redirects to Okta sign-in page
  3. User logs in with username and password
  4. ID token, access token and refresh token returned
  5. Access token lifetime set to 5 mins
  6. User waits 5 mins
  7. Network trace shows no new API calls to Okta in this time (eg. /token)
  8. Access token expiry time passes (nothing happens in browser)
  9. User must interact with app to refresh token

In previous version of SDK (3.1.0), the autoRenew is working

@martyngroberts martyngroberts changed the title autoRenew is no longer working in Angular SDK autoRenew is no longer working in latest Angular SDK 3.2.0 Jul 13, 2021
@oleksandrpravosudko-okta
Copy link
Contributor

Thanks for reporting this @martyngroberts - we will have this investigated and fixed.
Internal Ref: OKTA-411446

@oleksandrpravosudko-okta
Copy link
Contributor

It looks like token expiration handler is not set during login redirect - #48 (WIP) should address this issue.

@shuowu
Copy link
Contributor

shuowu commented Jul 20, 2021

@martyngroberts The fix is release in version 3.2.1. Closing the issue, feel free to re-open it if the issue still exists.

@shuowu shuowu closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants