refactor: auth.ts type

This commit is contained in:
Ravinou 2025-02-23 15:43:46 +01:00
commit f9856e5689
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -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);
}