@akanass/rx-otp
Version:
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
7 lines (6 loc) • 365 B
TypeScript
import { Observable } from 'rxjs';
import { HOTPGenerateOptions, HOTPVerifyOptions, OTPVerifyResult } from '../schemas/interfaces';
export declare class HOTP {
static generate: (key: string, options?: HOTPGenerateOptions) => Observable<string>;
static verify: (token: string, key: string, options?: HOTPVerifyOptions) => Observable<OTPVerifyResult | {}>;
}