MCPcopy Create free account
hub / github.com/Web3Auth/Auth / updateState

Method updateState

src/core/auth.ts:529–531  ·  view source on GitHub ↗
(data: Partial<AuthSessionData>)

Source from the content-addressed store, hash-verified

527 }
528
529 private updateState(data: Partial<AuthSessionData>) {
530 this.state = { ...this.state, ...data };
531 }
532
533 private async authHandler(url: string, dataObject: AuthRequestPayload, popupTimeout = 1000 * 10): Promise<AuthFlowResult | null> {
534 const loginId = StorageManager.generateRandomSessionKey();

Callers 3

initMethod · 0.95
refreshSessionMethod · 0.95
clearStateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected