mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on auth with credentials.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
export async function hashPassword(password: string): Promise<string> {
|
||||
const argon2 = require('argon2');
|
||||
|
||||
const hashedPassword = await argon2.hash(password);
|
||||
return hashedPassword;
|
||||
}
|
||||
Reference in New Issue
Block a user