Skip to content

BR-3276 Fix bearer token expiry calculation - #101

Merged
piotrm3ter merged 1 commit into
mainfrom
BR-3276-bearer-token-refresh-logic-incorrect
Jul 9, 2026
Merged

BR-3276 Fix bearer token expiry calculation#101
piotrm3ter merged 1 commit into
mainfrom
BR-3276-bearer-token-refresh-logic-incorrect

Conversation

@piotrm3ter

Copy link
Copy Markdown
Contributor

PR sixes bearer token refresh caching by treating expires_in as a duration instead of a Unix timestamp. The token expiry is now calculated from the current time minus the existing 5-minute refresh buffer.

Added a regression test to confirm a refreshed token is reused until its calculated expiry.

@piotrm3ter
piotrm3ter merged commit aaa844a into main Jul 9, 2026
10 of 12 checks passed
@piotrm3ter
piotrm3ter deleted the BR-3276-bearer-token-refresh-logic-incorrect branch July 9, 2026 06:24
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.

2 participants