@imajin/rx-otp
Version:
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
26 lines (25 loc) • 753 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ajv = void 0;
const Ajv = require("ajv");
const defineKeywords = require("ajv-keywords");
const definitions_1 = require("./definitions");
const hotp_1 = require("./hotp");
const totp_1 = require("./totp");
const u2f_1 = require("./u2f");
exports.ajv = new Ajv({
useDefaults: true,
$data: true,
schemas: [
hotp_1.HOTP_GENERATE_SCHEMA,
hotp_1.HOTP_VERIFY_SCHEMA,
totp_1.TOTP_GENERATE_SCHEMA,
totp_1.TOTP_VERIFY_SCHEMA,
u2f_1.U2F_URI_SCHEMA,
u2f_1.U2F_GENERATE_SCHEMA,
u2f_1.U2F_VERIFY_SCHEMA,
u2f_1.U2F_QR_SCHEMA,
definitions_1.DEFINITIONS_SCHEMA
]
});
defineKeywords(exports.ajv);