// lib/auth/tokens.ts import crypto from "crypto"; export function generateToken() { return crypto.randomBytes(32).toString("hex"); } export function hashToken(token: string) { return crypto.createHash("sha256").update(token).digest("hex"); }