MCPcopy Create free account
hub / github.com/Hazrat-Ali9/Problem-Solving-Frontend / getUser

Function getUser

lib/firebase/user.ts:39–43  ·  view source on GitHub ↗
(uid: string)

Source from the content-addressed store, hash-verified

37};
38// User TS
39export const getUser = async (uid: string) => {
40 const docRef = doc(db, USERS, uid);
41 const docSnap = await getDoc(docRef);
42 return docSnap.data();
43};
44
45export const getUserByEmail = async (email: string) => {
46 const usersRef = collection(db, USERS); // Change 'users' to your actual collection name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected