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

Client credentials backend may use expired token, because of network latency #48

Open
bwiercinski opened this issue Mar 10, 2021 · 0 comments

Comments

@bwiercinski
Copy link
Contributor

possible bug:
if this check (isBefore) is evaluated just before token expires, then because of duration of request dispatching and network latency, when the request will come to the requested server it may be already expired.

i see 2 options:

  • retry whole process once when 401 will be responded
  • add threshold (let say default 10 seconds). then use (expiryInstant - threshold)

Originally posted by @bwiercinski in #46 (comment)

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

1 participant