Spaces:
Sleeping
Sleeping
File size: 815 Bytes
2a1c46d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /**
* @otplib/preset-default
*
* @author Gerald Yeo <contact@fusedthought.com>
* @version: 12.0.1
* @license: MIT
**/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var pluginCrypto = require('@otplib/plugin-crypto');
var pluginThirtyTwo = require('@otplib/plugin-thirty-two');
var core = require('@otplib/core');
const hotp = new core.HOTP({
createDigest: pluginCrypto.createDigest
});
const totp = new core.TOTP({
createDigest: pluginCrypto.createDigest
});
const authenticator = new core.Authenticator({
createDigest: pluginCrypto.createDigest,
createRandomBytes: pluginCrypto.createRandomBytes,
keyDecoder: pluginThirtyTwo.keyDecoder,
keyEncoder: pluginThirtyTwo.keyEncoder
});
exports.authenticator = authenticator;
exports.hotp = hotp;
exports.totp = totp;
|