Repository navigation
feat(client): Automatic Token Refresh and Authentication Recovery - #181
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #181 +/- ##
==========================================
+ Coverage 88.05% 88.17% +0.11%
==========================================
Files 615 626 +11
Lines 20864 21799 +935
Branches 2529 2675 +146
==========================================
+ Hits 18372 19221 +849
- Misses 1601 1645 +44
- Partials 891 933 +42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #111
Introduces a unified automatic token refresh and authentication recovery pipeline for UltimateAuth clients, improving session continuity and reducing the need for manual refresh handling.
The implementation supports reactive, proactive, and background refresh strategies, coordinated through a shared refresh infrastructure with concurrency control, authentication lifecycle isolation, and guarded request replay.
What's Changed
Automatic Refresh Strategies
Strategies can be configured independently through
UAuthClientOptions.AutoRefresh.Unified Refresh Coordination
Retry-Aftersupport and bounded retry backoff.Authentication Recovery & Request Replay
Background Lifecycle & Reliability
Client & Server Integration
Configuration
Reactive and proactive refresh are enabled by default. Background refresh is controlled independently.
Testing
Expanded unit, integration, and JavaScript test coverage for:
Notes