otp-io
Version:
🕖 Typed library to work 2fa via Google Authenticator/Time-based TOTP/Hmac-based HOTP
14 lines • 384 B
JavaScript
;const hmac=require('./crypto/hmac.js'),key=require('./key.js');/**
*
*
* @export
* @return {*} {Required<HOTPOptions>}
*/
function getDefaultHOTPOptions() {
return {
algorithm: hmac.HmacAlgorithm.SHA1,
digits: 6,
counter: 0,
secret: new key.SecretKey(new Uint8Array())
};
}exports.getDefaultHOTPOptions=getDefaultHOTPOptions;