@better-auth/utils
Version:
A collection of utilities for better-auth
14 lines (12 loc) • 353 B
text/typescript
declare const createOTP: (secret: string, opts?: {
digits?: number;
period?: number;
}) => {
hotp: (counter: number) => Promise<string>;
totp: () => Promise<string>;
verify: (otp: string, options?: {
window?: number;
}) => Promise<boolean>;
url: (issuer: string, account: string) => string;
};
export { createOTP };