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