UNPKG

@me7/totp

Version:

Time-Based One-Time Password Algorithm (RFC 6238)

16 lines (12 loc) 236 B
import { name } from "./crypto"; export function hi(name: string): string { return `hello my name is ${name}`; } export class TOTP { static generate(): number { return Math.random(); } validate() { return name; } }