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

[Bug] Preemptively refresh tokens in the background #2795

Closed
rymeskar opened this issue Jul 27, 2021 · 0 comments · Fixed by #2853 or #2882
Closed

[Bug] Preemptively refresh tokens in the background #2795

rymeskar opened this issue Jul 27, 2021 · 0 comments · Fixed by #2853 or #2882
Assignees
Labels

Comments

@rymeskar
Copy link

Which version of MSAL.NET are you using?
Latest

Platform
All

What authentication flow has the issue?
All with the support of refresh_in coming from eSTS.

Repro

Right now, the request that performs the preemptive cache refresh before expiry of a token gets a live latency hit. As discussed with @bgavrilMS, this is not intended behavior.

Expected behavior

The expectation is that the preemptive refresh happens in the background, with the initial cached token being immediately returned. Thus, the request is not burdened with the latency of communication with eSTS and seting the token to cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment