otplib-core/totpTimeRemaining

Calculates the number of seconds till next 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