Added auth and added doc✔️

This commit is contained in:
Manik Maity
2024-11-08 13:25:21 +05:30
parent 582daa2c3b
commit 59a892d042
4 changed files with 110 additions and 2 deletions

View File

@@ -23,4 +23,14 @@ export async function findUserByEmail(email) {
catch(err){
throw err;
}
}
export async function findUserById(id) {
try{
const user = await UserModel.findById(id);
return user;
}
catch(err){
throw err;
}
}