Skip to content

Commit 396b823

Browse files
scr2emkentcdodds
andauthored
fix: TOPT flow comments (#161)
* fix: TOPT flow comments * Update app/utils/totp.server.ts --------- Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 9d02e65 commit 396b823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/totp.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Here's the typical process:
1919
* 1. Generate a secret (crypto.randomBytes(32).toString('hex'))
2020
* 2. Generate the TOTP with that secret (generateTOTP(secret))
21-
* 3. Store the secret and the TOTP in the database along with the thing you're verifying (e.g. user email)
21+
* 3. Store the secret, digits, and period in the database along with the thing you're verifying (e.g. user email)
2222
* 4. Send the TOTP to the user (e.g. email it to them)
2323
* 5. When the user enters the TOTP, verify it (verifyTOTP(token, secret))
2424
* 6. If the TOTP is valid, delete it from the database and allow the user to proceed

0 commit comments

Comments
 (0)