otp-io
Version:
🕖 Typed library to work 2fa via Google Authenticator/Time-based TOTP/Hmac-based HOTP
21 lines (20 loc) • 453 B
TypeScript
import { HOTPOptions } from "./hotp.options";
import { TOTPOptions } from "./totp.options";
type CommonOptions = {
issuer: string;
name: string;
};
export type UriOptions = ({
type: "hotp";
} & CommonOptions & HOTPOptions) | ({
type: "totp";
} & CommonOptions & TOTPOptions);
/**
*
*
* @export
* @param {UriOptions} options
* @return {string} {string}
*/
export declare function getKeyUri(options: UriOptions): string;
export {};