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