fix(services): 🐛 CredentialService missing namespace

This commit is contained in:
Mathis H (Avnyr) 2024-04-23 16:39:03 +02:00
parent 3fe395cccf
commit 1f984f4392
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -13,4 +13,11 @@ export async function comparePassword(password: string, hash: string) {
secret: Buffer.from(`${process.env["HASH_SECRET"]}`), secret: Buffer.from(`${process.env["HASH_SECRET"]}`),
algorithm: 2 algorithm: 2
}); });
} }
const CredentialService = {
compare: comparePassword,
hash: getHashFromPassword,
}
export default CredentialService;