feat: add custom ApiContext auth recovery service - #3131
Merged
Merged
Conversation
|
Generated by: track-bundle-size
new sizes (raw)To set the sizes as a new baseline, you can copy/paste next content to the {
"version": "6.5.2",
"timestamp": "2026-09-22",
"sizes": {
"templateApp": {
"css": 260539,
"js": 448009
},
"@epam/app": {
"css": 726373,
"js": 4945183
},
"@epam/electric": {
"css": 2275,
"js": 2883
},
"@epam/promo": {
"css": 47756,
"js": 9191
},
"@epam/uui-extra": {
"css": 0,
"js": 213
},
"@epam/loveship": {
"css": 55355,
"js": 43269
},
"@epam/uui-components": {
"css": 25151,
"js": 244197
},
"@epam/uui-core": {
"css": 0,
"js": 338925
},
"@epam/uui-db": {
"css": 0,
"js": 42718
},
"@epam/uui-docs": {
"css": 2153,
"js": 197256
},
"@epam/uui-editor": {
"css": 12948,
"js": 164476
},
"@epam/uui-timeline": {
"css": 2198,
"js": 75104
},
"@epam/uui": {
"css": 222187,
"js": 352782
}
}
}Generated by: generate-components-api Total amount of exported types/props without JSDoc comments
|
siarhei-epam
force-pushed
the
feature/custom-auth-recovery
branch
from
September 22, 2026 11:03
cf3c131 to
9c56a72
Compare
JuliaMV
approved these changes
Sep 22, 2026
JuliaMV
force-pushed
the
feature/custom-auth-recovery
branch
from
September 22, 2026 11:48
14b9f6b to
265d0e8
Compare
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
IAuthRecoveryServicecontract for authentication recovery strategies.authRecoveryServiceprop toApiContextanduseUuiServices.ApiContextnow creates the supplied recovery service instead of the defaultAuthRecoveryService.tryToRecover;initanddestroyare optional.Usage
A custom service receives the existing
AuthRecoveryContextProps, includingonSuccessAuthRecovery. After authentication is restored, it calls thiscallback so
ApiContextcan resume and retry queued requests.This allows applications with host-owned authentication, such as federated
modules, to implement token refresh without using the default relogin popup.
Documentation
AuthRecoveryContextPropsandIAuthRecoveryServicefrom@epam/uui-core.Testing
yarn test -- --runInBandyarn eslintyarn track-bundle-size