ts: define return type

This commit is contained in:
karishmas6
2024-09-25 19:19:06 +05:30
parent 2e10b966ed
commit af62e91388

View File

@@ -17,6 +17,6 @@ export const hashPassword = (password: string): Promise<string> => {
}
// password from frontend and hash from database
export const comparePassword = (password: string, hash: any) => {
export const comparePassword = (password: string, hash: string): Promise<boolean> => {
return bcrypt.compare(password, hash)
}