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

Function initializeAuth

examples/react-example/src/App.tsx:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 useEffect(() => {
48 setLoading(true);
49 async function initializeAuth() {
50 try {
51 await auth.init();
52 if (auth.privKey) {
53 await printUserInfo();
54 }
55 } catch (error) {
56 log.error("error while initialization", error);
57 } finally {
58 setLoading(false);
59 }
60 }
61 initializeAuth();
62 }, []);
63

Callers 1

AppFunction · 0.85

Calls 2

printUserInfoFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected