UNPKG

@devolutions/slauth

Version:

oath HOTP and TOTP complient implementation

24 lines (23 loc) 932 B
/* tslint:disable */ /* eslint-disable */ export class OtpAlgorithm { private constructor(); free(): void; static sha1(): OtpAlgorithm; static sha256(): OtpAlgorithm; static sha512(): OtpAlgorithm; } export class PasskeyAuthenticator { free(): void; constructor(aaguid: string); generateCredentialCreationResponse(options: any, credential_id: Uint8Array, attestation_flags: number, origin?: string | null): any; generateCredentialRequestResponse(options: any, credential_id: Uint8Array, attestation_flags: number, origin: string | null | undefined, user_handle: Uint8Array | null | undefined, private_key: string): any; } export class Totp { private constructor(); free(): void; static fromParts(secret: string, period: number, digits: number, algo: OtpAlgorithm): Totp; static fromUri(uri: string): Totp; toUri(application?: string | null, username?: string | null): string; generateCode(): string; }