notp icon indicating copy to clipboard operation
notp copied to clipboard

totp verification always fails.

Open relentless-coder opened this issue 3 years ago • 1 comments

I am using the notp.totp.verify method to verify a token for a base32 secret, but it fails for every token. The token is generated on the authenticator app, I tested with both Google's and Microsoft's.

I used the secret to generate totp with notp.totp.gen, but it generates different token than the ones generated by the google's and microsoft's authenticator app.

I'm guessing that's why the verification fails as well, since for a given time step the token doesn't match.

i'm using default time step of 30 seconds.

relentless-coder avatar Jun 28 '21 15:06 relentless-coder

Is the time on your mobile correct?

Uzlopak avatar Nov 22 '21 17:11 Uzlopak