Better HN
topnewbestaskshowjobs
Log inSign up

radranic

1 karma · joined Aug 7, 2020 (6y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

You also need more than just a yes/no just for the authentication.

You should record the last successful count/time window to prevent code re-use. In the rare case that you expect clients to use devices to generate the codes that may be offline for a long time (or never connected dongles) you also need to compensate for personalized time drift for each device.