The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { compare, hash } from "bcryptjs";
export async function hashPassword(password: string) {
return await hash(password, 12);
}
export async function validatePassword({
password,
passwordHash,
}: {
password: string;
passwordHash: string;
}) {
return await compare(password, passwordHash);
}