@akanass/rx-otp
Version:
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
138 lines (137 loc) • 2.81 kB
TypeScript
export declare const TOTP_GENERATE_SCHEMA: {
$schema: string;
$id: string;
title: string;
type: string;
properties: {
key: {};
key_format: {
$ref: string;
default: string;
};
time: {
$ref: string;
default: number;
};
timestamp: {
$ref: string;
};
code_digits: {
$ref: string;
default: number;
};
add_checksum: {
$ref: string;
default: boolean;
};
truncation_offset: {
$ref: string;
default: number;
};
algorithm: {
$ref: string;
default: string;
};
};
dynamicDefaults: {
timestamp: string;
};
required: string[];
dependencies: {
key: string[];
};
additionalProperties: boolean;
allOf: {
if: {
properties: {
key_format: {
const: string;
};
};
};
then: {
properties: {
key: {
$ref: string;
};
};
};
else: {
properties: {
key: {
$ref: string;
};
};
};
}[];
};
export declare const TOTP_VERIFY_SCHEMA: {
$schema: string;
$id: string;
title: string;
type: string;
properties: {
token: {
$ref: string;
};
key: {};
key_format: {
$ref: string;
default: string;
};
window: {
$ref: string;
default: number;
};
time: {
$ref: string;
default: number;
};
timestamp: {
$ref: string;
};
add_checksum: {
$ref: string;
default: boolean;
};
truncation_offset: {
$ref: string;
default: number;
};
algorithm: {
$ref: string;
default: string;
};
};
dynamicDefaults: {
timestamp: string;
};
required: string[];
dependencies: {
key: string[];
};
additionalProperties: boolean;
allOf: {
if: {
properties: {
key_format: {
const: string;
};
};
};
then: {
properties: {
key: {
$ref: string;
};
};
};
else: {
properties: {
key: {
$ref: string;
};
};
};
}[];
};