Skip to content

Commit

Permalink
fix TOTP doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jan 17, 2024
1 parent 92565ca commit acfe757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/email-and-password/2fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ if (!user) {
}

const result = await db.table("user").where("id", "=", user.id).get("two_factor_secret");
const validOTP = new TOTPController().verify(decodeHex(result.two_factor_secret, otp));
const validOTP = await new TOTPController().verify(otp, decodeHex(result.two_factor_secret));
```

0 comments on commit acfe757

Please sign in to comment.