summaryrefslogtreecommitdiff
path: root/node_modules/node-2fa/dist/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/node-2fa/dist/index.d.ts')
-rw-r--r--node_modules/node-2fa/dist/index.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/node-2fa/dist/index.d.ts b/node_modules/node-2fa/dist/index.d.ts
new file mode 100644
index 0000000..c0db623
--- /dev/null
+++ b/node_modules/node-2fa/dist/index.d.ts
@@ -0,0 +1,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;