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

Method clearState

src/core/auth.ts:497–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

495 }
496
497 private clearState() {
498 this.updateState({
499 privKey: "",
500 coreKitKey: "",
501 coreKitEd25519PrivKey: "",
502 ed25519PrivKey: "",
503 walletKey: "",
504 oAuthPrivateKey: "",
505 tKey: "",
506 metadataNonce: "",
507 keyMode: undefined,
508 userInfo: {
509 name: "",
510 profileImage: "",
511 dappShare: "",
512 idToken: "",
513 oAuthIdToken: "",
514 oAuthAccessToken: "",
515 appState: "",
516 email: "",
517 authConnectionId: "",
518 userId: "",
519 groupedAuthConnectionId: "",
520 authConnection: "",
521 isMfaEnabled: false,
522 },
523 authToken: "",
524 sessionId: "",
525 signatures: [],
526 });
527 }
528
529 private updateState(data: Partial<AuthSessionData>) {
530 this.state = { ...this.state, ...data };

Callers 2

logoutMethod · 0.95
refreshSessionMethod · 0.95

Calls 1

updateStateMethod · 0.95

Tested by

no test coverage detected