From a2e4c2dde086c8a336164f16433c6abd6be3c57e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 24 Sep 2024 19:16:51 +0530 Subject: [PATCH] fix: ts errors --- server/src/utils/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/utils/auth.ts b/server/src/utils/auth.ts index d7eb5751..4cc45644 100644 --- a/server/src/utils/auth.ts +++ b/server/src/utils/auth.ts @@ -1,6 +1,6 @@ import bcrypt from "bcrypt"; -export const hashPassword = (password) => { +export const hashPassword = (password: any) => { return new Promise((resolve, reject) => { bcrypt.genSalt(12, (err, salt) => { if (err) { @@ -17,6 +17,6 @@ export const hashPassword = (password) => { } // password from frontend and hash from database -export const comparePassword = (password, hash) => { +export const comparePassword = (password: any, hash: any) => { return bcrypt.compare(password, hash) } \ No newline at end of file