Skip to content

Added option to set up silent refresh only for certain type of token. #462

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

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

martin1cerny
Copy link
Contributor

ID token often has significantly shorter expiry time compared to access token. This PR adds a non-destructive option to setupAutomaticSilentRefresh() which allows to only watch for certain kind of token expiry. This also solves issue #432.

@manfredsteyer manfredsteyer merged commit 0274cf5 into manfredsteyer:master Oct 25, 2018
@manfredsteyer
Copy link
Owner

Thx, that's great!

@davdev82
Copy link

@martin1cerny Although the option is added to filter token_expires based on the listenTo parameter, the code that sets up the timers setupExpirationTimers() still continues to use the shorter expiring time which will be id_token. I dont think the issue is still fixed.

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

Successfully merging this pull request may close these issues.

3 participants