jennings / OATH.Net

A small library that implements the HOTP and TOTP algorithms for two-factor authentication. Compatible with the Google Authenticator app for iPhone and Android.
https://www.nuget.org/packages/OATH.Net/
28 stars 14 forks source link

How to allow longer TOTP time? #11

Closed yong2khoo88 closed 8 years ago

yong2khoo88 commented 8 years ago

Is there a way to customize when the TOTP code expired? Currently, when it is more than 1 minute, the validation will fail.

How to customize? Thanks in advance.

yong2khoo88 commented 8 years ago

My bad. i found the solution, it is to specify the timespan in the validateOtp function. Thanks!