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