diff --git a/helpers/functions/auth.ts b/helpers/functions/auth.ts index 4e64840..39ca865 100644 --- a/helpers/functions/auth.ts +++ b/helpers/functions/auth.ts @@ -2,10 +2,10 @@ //Lib import { hash, compare } from 'bcryptjs'; -export async function hashPassword(password) { +export async function hashPassword(password: string) { return await hash(password, 12); } -export async function verifyPassword(password, hashedPassword) { +export async function verifyPassword(password: string, hashedPassword: string) { return await compare(password, hashedPassword); }