otplib-core/totpTimeUsed

Calculates the number of seconds used in the current tick for TOTP

Source:
Parameters:
Name Type Description
epoch number

starting time since the JavasSript epoch (seconds) (UNIX epoch * 1000)

step number

time step (seconds)

Returns:
Type:
number
  • in seconds