MCPcopy
hub / github.com/authts/oidc-client-ts / addHandler

Method addHandler

src/utils/Event.ts:23–26  ·  view source on GitHub ↗
(cb: Callback<EventType>)

Source from the content-addressed store, hash-verified

21 }
22
23 public addHandler(cb: Callback<EventType>): () => void {
24 this._callbacks.push(cb);
25 return () => this.removeHandler(cb);
26 }
27
28 public removeHandler(cb: Callback<EventType>): void {
29 const idx = this._callbacks.lastIndexOf(cb);

Callers 12

startMethod · 0.80
addAccessTokenExpiredMethod · 0.80
addUserLoadedMethod · 0.80
addUserUnloadedMethod · 0.80
addSilentRenewErrorMethod · 0.80
addUserSignedInMethod · 0.80
addUserSignedOutMethod · 0.80
addUserSessionChangedMethod · 0.80
Event.test.tsFile · 0.80
Timer.test.tsFile · 0.80
navigateFunction · 0.80

Calls 1

removeHandlerMethod · 0.95

Tested by

no test coverage detected