MCPcopy Create free account
hub / github.com/VadimNotJustDev/SignalClone / fetchUser

Function fetchUser

App.tsx:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }, [user]);
83
84 const fetchUser = async () => {
85 const userData = await Auth.currentAuthenticatedUser();
86 const user = await DataStore.query(User, userData.attributes.sub);
87 if (user) {
88 setUser(user);
89 }
90 };
91
92 const updateLastOnline = async () => {
93 if (!user) {

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected