custom algorithm for crypto.createHmac. Default: sha1
unique secret key for user
time-step in seconds (default recomended). Default: 30
6 digit code as a string
custom algorithm for crypto.createHmac. Default: sha1
unique secret key for user
time-step in seconds (default is recomended). Default: 30
code, provided by user
counter values window. Default: 1
null if nothing found or number between -window to +window if same code in steps found
Generated using TypeDoc
TOTP = HOTP(K, T)
https://datatracker.ietf.org/doc/html/rfc6238#section-4.2