Working on auth with credentials.

This commit is contained in:
charles-gauthereau
2024-11-03 21:12:40 +01:00
parent d6ff290f66
commit 3587849803
28 changed files with 1039 additions and 591 deletions
+8
View File
@@ -0,0 +1,8 @@
export async function hashPassword(password: string): Promise<string> {
const argon2 = require('argon2');
const hashedPassword = await argon2.hash(password);
return hashedPassword;
}