8000 Recover after early refresh failures by akhi-ninja · Pull Request #380 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]

Skip to content

Recover after early refresh failures - #380

Open
akhi-ninja wants to merge 1 commit into
keycloak:mainfrom
akhi-ninja:fix/token-refresh-recovery
Open

akhi-ninja wants to merge 1 commit into
keycloak:mainfrom
akhi-ninja:fix/token-refresh-recovery

Conversation

@akhi-ninja
Copy link
Copy Markdown

Closes #379

Move token endpoint lookup into the existing refresh error handler so an early failure rejects the queued call and allows a later refresh to proceed.

The focused Chromium regression test times out on the base implementation and passes with the fix. It also checks that two concurrent callers share one successful token request. The full integration suite was not run.

AI disclosure: Codex assisted in generating the patch and regression test.

Closes keycloak#379

Signed-off-by: Akhil Gopinath <5537438+akhi-ninja@users.noreply.github.com>
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.

updateToken() wedges every later refresh when it throws before the token request starts

1 participant

0