From af62e91388dc75de34b6c7add4091dc393f9cade Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 25 Sep 2024 19:19:06 +0530 Subject: [PATCH] ts: define return type --- server/src/utils/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/auth.ts b/server/src/utils/auth.ts index e853b1ed..96e121f9 100644 --- a/server/src/utils/auth.ts +++ b/server/src/utils/auth.ts @@ -17,6 +17,6 @@ export const hashPassword = (password: string): Promise => { } // password from frontend and hash from database -export const comparePassword = (password: string, hash: any) => { +export const comparePassword = (password: string, hash: string): Promise => { return bcrypt.compare(password, hash) } \ No newline at end of file