Skip to content

otplib API Documentation / @otplib/core / GenerationReady

Type Alias: GenerationReady<T>

GenerationReady<T> = T & object

Defined in: packages/core/src/utility-types.ts:125

Options type for OTP generation (crypto required)

Type Declaration

crypto

crypto: CryptoPlugin

Type Parameters

T

T extends object

Example

ts
type MyGenerateOptions = GenerationReady<HOTPOptions>;
// HOTPOptions with crypto required

Released under the MIT License.