Skip to content

Commit

Permalink
fix: set options.window to number
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Aug 2, 2023
1 parent 05a6d19 commit e83ceb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ will show you all this stuff, but just in case, here's that:
* @param {number} [options.period] The number of seconds for the OTP to be valid.
* @param {number} [options.digits] The length of the OTP.
* @param {string} [options.algorithm] The algorithm to use.
* @param [options.window] The number of OTPs to check before and after the
* current OTP. Defaults to 1.
* @param {number} [options.window] The number of OTPs to check before and after
* the current OTP. Defaults to 1.
*
* @returns {{delta: number}|null} an object with "delta" which is the delta
* between the current OTP and the OTP that was verified, or null if the OTP is
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export function getTOTPAuthUri({
* @param {number} [options.period] The number of seconds for the OTP to be valid.
* @param {number} [options.digits] The length of the OTP.
* @param {string} [options.algorithm] The algorithm to use.
* @param [options.window] The number of OTPs to check before and after the
* current OTP. Defaults to 1.
* @param {number} [options.window] The number of OTPs to check before and after
* the current OTP. Defaults to 1.
*
* @returns {{delta: number}|null} an object with "delta" which is the delta
* between the current OTP and the OTP that was verified, or null if the OTP is
Expand Down

0 comments on commit e83ceb3

Please sign in to comment.