Skip to content

Commit

Permalink
Update type definition in TOTP.validate method
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Sep 28, 2024
1 parent 0ef4964 commit dd589c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/totp.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TOTP {
* @param {string} config.token Token value.
* @param {Secret} config.secret Secret key.
* @param {string} [config.algorithm='SHA1'] HMAC hashing algorithm.
* @param {number} config.digits Token length.
* @param {number} [config.digits=6] Token length.
* @param {number} [config.period=30] Token time-step duration.
* @param {number} [config.timestamp=Date.now] Timestamp value in milliseconds.
* @param {number} [config.window=1] Window of counter values to test.
Expand Down

0 comments on commit dd589c4

Please sign in to comment.