stacks/stx
chore: wip stx improvements
#1649
Merged
fingersandmind
wants to merge
feat/stx-improvements
into
main
241 files
+19022
-1323
packages/auth/src/password.tsadded+7-0Changes to packages/auth/src/password.ts | @@ -0,0 +1,7 @@ |
| 1 | +export async function hashPassword(plain: string): Promise<string> { |
| 2 | + return Bun.password.hash(plain) |
| 3 | +} |
| 4 | + |
| 5 | +export async function verifyPassword(plain: string, hashed: string): Promise<boolean> { |
| 6 | + return Bun.password.verify(plain, hashed) |
| 7 | +} |