From f9856e5689be12adf57ffe50ef0d15f3703b0fae Mon Sep 17 00:00:00 2001 From: Ravinou Date: Sun, 23 Feb 2025 15:43:46 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=9A=A1=20auth.ts=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/functions/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }