fix(auth): found some bugs in the jwt token

This commit is contained in:
2025-02-21 21:54:26 -06:00
parent 026583815c
commit f320118880
11 changed files with 149 additions and 96 deletions

View File

@@ -8,9 +8,9 @@ export const createPassword = async (password: string) => {
if (!pass || !salt) {
pass = "error";
} else {
pass = bcrypt.hashSync(process.env.SECRET + password, parseInt(salt));
pass = bcrypt.hashSync(pass + password, parseInt(salt));
pass = btoa(pass);
// pass = btoa(pass);
}
return pass;