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

Method getUserInfo

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

Source from the content-addressed store, hash-verified

434 }
435
436 async getUserInfo(): Promise<AuthUserInfo> {
437 if (!this.sessionId) {
438 throw LoginError.userNotLoggedIn();
439 }
440 return {
441 ...this.state.userInfo,
442 idToken: await this.sessionManager.getIdToken(),
443 };
444 }
445
446 async getAccessToken(): Promise<string> {
447 if (!this.sessionId) {

Callers 1

printUserInfoFunction · 0.80

Calls 1

userNotLoggedInMethod · 0.80

Tested by

no test coverage detected