UNPKG

1.06 kBJavaScriptView Raw
1/**
2 * otplib
3 *
4 * @author Gerald Yeo <contact@fusedthought.com>
5 * @version: 7.0.0
6 * @license: MIT
7 **/
8'use strict';
9
10var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
11
12function _interopDefault(ex) {
13 return ex && (typeof ex === 'undefined' ? 'undefined' : _typeof(ex)) === 'object' && 'default' in ex ? ex['default'] : ex;
14}
15
16var hotp = _interopDefault(require('./hotp'));
17var totp = _interopDefault(require('./totp'));
18var authenticator = _interopDefault(require('./authenticator'));
19var crypto = _interopDefault(require('crypto'));
20
21authenticator.options = { crypto: crypto };
22hotp.options = { crypto: crypto };
23totp.options = { crypto: crypto };
24var index = {
25 Authenticator: authenticator.Authenticator,
26 HOTP: hotp.HOTP,
27 TOTP: totp.TOTP,
28 authenticator: authenticator,
29 hotp: hotp,
30 totp: totp
31};
32
33module.exports = index;
\No newline at end of file