Skip to content

Conversation

@NicolaiHoel
Copy link
Contributor

@NicolaiHoel NicolaiHoel commented Jan 20, 2026

Remove old headers before adding new on token refresh

@NicolaiHoel NicolaiHoel changed the title Fix/power 4446 authentication POWER 4446 authentication Jan 20, 2026
@NicolaiHoel NicolaiHoel changed the title POWER 4446 authentication POWER 4446 Fix authentication token refresh Jan 20, 2026
@NicolaiHoel NicolaiHoel marked this pull request as ready for review January 20, 2026 13:47
@NicolaiHoel NicolaiHoel requested a review from a team as a code owner January 20, 2026 13:47
@sarahsa sarahsa requested a review from Copilot January 20, 2026 13:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes authentication token refresh by ensuring old headers are removed before adding new ones, preventing duplicate header issues when tokens are refreshed.

Changes:

  • Added double-check locking to prevent redundant token refreshes when multiple threads are waiting
  • Ensured old authentication headers are removed before adding refreshed values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@sarahsa sarahsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NicolaiHoel NicolaiHoel merged commit 68a62b4 into main Jan 20, 2026
2 checks passed
@NicolaiHoel NicolaiHoel deleted the fix/POWER-4446-authentication branch January 20, 2026 14:19
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