otplib-core/totpToken

Generates the OTP code

Source:
Parameters:
Name Type Description
secret string

your secret that is used to generate the token

options object

allowed options as specified in totpOptions()

Returns:
Type:
string

OTP Code