Finds the counter two consecutive codes came from, over the resync window. A refusal carries its error code.
the HOTP record
the first code
the code the token showed next
Optional
window, overriding hotp.resyncWindow
window
hotp.resyncWindow
{ ok: true, counter, next, ahead } (counter the second code's), or a refusal
{ ok: true, counter, next, ahead }
counter
Finds the counter two consecutive codes came from, over the resync window. A refusal carries its error code.