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

Method getAccessToken

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

Source from the content-addressed store, hash-verified

444 }
445
446 async getAccessToken(): Promise<string> {
447 if (!this.sessionId) {
448 throw LoginError.userNotLoggedIn();
449 }
450 const token = await this.sessionManager.getAccessToken();
451 if (!token) throw LoginError.userNotLoggedIn();
452 return token;
453 }
454
455 async refreshSession(): Promise<void> {
456 const data = await this._authorizeSession();

Callers 5

enableMFAMethod · 0.95
manageMFAMethod · 0.95
manageSocialFactorMethod · 0.95
addPasskeyFactorMethod · 0.95

Calls 1

userNotLoggedInMethod · 0.80

Tested by

no test coverage detected