otplib-core/totpOptions

Generates options for TOTP

Source:
Parameters:
Name Type Description
options.digits number

the output token length

options.epoch string

starting time since the UNIX epoch (seconds)

options.step number

time step (seconds)

options.window number | array

acceptable window where codes a valid.

Returns:
Type:
object