Skip to content

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

Open
@bwiercinski

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions