totpStep
Function: totpStep()
totpStep(
now?,period?):number
Defined in: packages/core/src/utils/totp.ts:137
Calculate the TOTP time step index for a given timestamp
Parameters
now?
number = ...
timestamp (in ms if >= 1e11, or seconds if < 1e11; defaults to Date.now())
period?
number = 30
time step duration in seconds (default 30)
Returns
number
time step index