Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jun 8, 2024
2 parents 6a8c047 + b23ac77 commit 701b97b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/examples/hotp.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const digits = 6;
let counter = 10n;

const otp = generateHOTP(key, counter, digits);
const validOTP = verifyOTP(otp, secret, counter, digits);
const validOTP = verifyOTP(otp, key, counter, digits);
```

Use [`createHOTPKeyURI()`](/reference/main/createHOTPKeyURI) to create a key URI, which are then usually encoded into a QR code.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/examples/totp.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const digits = 6;
const intervalInSeconds = 30;

const otp = generateTOTP(key, intervalInSeconds, digits);
const validOTP = verifyTOTP(otp, secret, intervalInSeconds, digits);
const validOTP = verifyTOTP(otp, key, intervalInSeconds, digits);
```

Use [`createTOTPKeyURI()`](/reference/main/createTOTPKeyURI) to create a key URI, which are then usually encoded into a QR code.
Expand Down

0 comments on commit 701b97b

Please sign in to comment.