summaryrefslogtreecommitdiff
path: root/node_modules/node-2fa/dist/index.d.ts
blob: c0db6238a321656528501716b59e78df86de7ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
import notp from "notp";
import { Options } from "./interfaces";
export declare function generateSecret(options?: Options): {
    secret: string;
    uri: string;
    qr: string;
};
export declare function generateToken(secret: string): {
    token: string;
} | null;
export declare function verifyToken(secret: string, token?: string, window?: number): notp.VerifyResult | null;