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

Method fromCode

src/core/errors.ts:91–93  ·  view source on GitHub ↗
(code: number, extraMessage = "")

Source from the content-addressed store, hash-verified

89 }
90
91 public static fromCode(code: number, extraMessage = ""): AuthError {
92 return new LoginError(code, `${LoginError.messages[code]}, ${extraMessage}`);
93 }
94
95 public static invalidLoginParams(extraMessage = ""): AuthError {
96 return LoginError.fromCode(5111, extraMessage);

Callers 9

invalidParamsMethod · 0.45
notInitializedMethod · 0.45
invalidLoginParamsMethod · 0.45
userNotLoggedInMethod · 0.45
popupClosedMethod · 0.45
loginFailedMethod · 0.45
popupBlockedMethod · 0.45
mfaAlreadyEnabledMethod · 0.45
mfaNotEnabledMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected