Skip to content

Commit

Permalink
fix(UserManager): handle concurrent token refresh requests via leader…
Browse files Browse the repository at this point in the history
… election

Introduces leader election for concurrent token refresh requests. This adds a
new dependency (broadcast-channel) which takes care of the election process.

Closes authts#430
  • Loading branch information
DASPRiD committed Mar 22, 2022
1 parent c9fcaa0 commit 78ed63d
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 46 deletions.
2 changes: 2 additions & 0 deletions docs/oidc-client-ts.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ export class UserManager {
signinRedirect(args?: SigninRedirectArgs): Promise<void>;
signinRedirectCallback(url?: string): Promise<User>;
signinSilent(args?: SigninSilentArgs): Promise<User | null>;
// (undocumented)
protected _signinSilent(args?: SigninSilentArgs): Promise<User | null>;
signinSilentCallback(url?: string): Promise<void>;
// Warning: (ae-forgotten-export) The symbol "NavigateResponse" needs to be exported by the entry point index.d.ts
//
Expand Down
Loading

0 comments on commit 78ed63d

Please sign in to comment.