UNPKG

aegis-auth

Version:

A credentials-based auth solution for Next.js (and other Node projects) with IP rate-limiting, account lockouts, and sessions in DB.

7 lines 300 B
import { hex } from "./hex"; import { randomBytes } from "./random"; export async function createVerificationToken({ config, }) { const verificationToken = hex.encode(randomBytes(config.verification.tokenLengthBytes)); return verificationToken; } //# sourceMappingURL=verificationToken.js.map