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

Method logout

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

Source from the content-addressed store, hash-verified

268 }
269
270 async logout(): Promise<void> {
271 if (!this.sessionId) throw LoginError.userNotLoggedIn();
272 await this.sessionManager.logout();
273 this.clearState();
274 }
275
276 async enableMFA(params: Partial<LoginParams>): Promise<boolean> {
277 if (!this.sessionId) throw LoginError.userNotLoggedIn();

Callers 2

refreshSessionMethod · 0.80
logoutFunction · 0.80

Calls 2

clearStateMethod · 0.95
userNotLoggedInMethod · 0.80

Tested by

no test coverage detected