otplib-core/hotpToken

Generates the OTP code

Source:
Parameters:
Name Type Description
secret string

your secret that is used to generate the token

counter number

the OTP counter (usually it's an incremental count)

options object

allowed options as specified in hotpOptions()

Returns:
Type:
string

OTP Code