wstrange / GoogleAuth

Google Authenticator Server side code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How does the scratch code work?

leo7 opened this issue · comments

Hi,

I am not 100% sure how the scratch codes work here, but I tried to use it as the verification codes and it failed.

So, my questions are

  1. how does the scratch code work? work as a verification code?
  2. do I need to persist the scratch codes in the database to make it work?

Thanks.

You will need to store the scratch codes, then when someone choose to use one of them, just remove the burned code from database.