Merge pull request #215 from cartsnitch/fix/car-663-bcrypt-cost-factor

fix: increase bcrypt cost factor from 10 to 12
This commit is contained in:
cartsnitch-cto[bot]
2026-04-19 00:02:28 +00:00
committed by GitHub
+1 -1
View File
@@ -37,7 +37,7 @@ export const auth = betterAuth({
maxPasswordLength: 128,
password: {
hash: async (password: string) => {
return bcrypt.hash(password, 10);
return bcrypt.hash(password, 12);
},
verify: async (data: { hash: string; password: string }) => {
return bcrypt.compare(data.password, data.hash);