diff options
author | Minteck <contact@minteck.org> | 2022-08-10 10:38:44 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-08-10 10:38:44 +0200 |
commit | c6dbf0450566c40efc4a26f4f0717452b6ef95cd (patch) | |
tree | b4be2d508223820d0a77d5a3e35e82684da3b6ec /node_modules/node-2fa/dist/index.d.ts | |
download | hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.tar.gz hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.tar.bz2 hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.zip |
Diffstat (limited to 'node_modules/node-2fa/dist/index.d.ts')
-rw-r--r-- | node_modules/node-2fa/dist/index.d.ts | 11 |
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; |