Interface SecretOptions

interface SecretOptions {
    secret: string | Buffer;
    secretEncoding: BufferEncodingLike;
    size: number;
}

Properties

secret: string | Buffer

The secret seed

If a string is supplied, secretEncoding is used to load the secret

secretEncoding: BufferEncodingLike

The encoding of the secret seed

Default

base32
size: number

The byte size of the seed

Default

20