fix: some doc error

This commit is contained in:
lancegin
2017-06-30 07:51:35 +08:00
parent 6436b6d307
commit 22bfd89bf3
4 changed files with 5 additions and 74 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export class HOTP extends OTP {
*
* @example
* ```javascript
* let hotp = jsotp.HOTP.gen('BASE32_ENCODED_SECRET');
* let hotp = jsotp.HOTP('BASE32_ENCODED_SECRET');
* hotp.at(0); // => 432143
* ```
*/
@@ -40,7 +40,7 @@ export class HOTP extends OTP {
*
* @example
* ```javascript
* let hotp = jsotp.HOTP.gen('BASE32_ENCODED_SECRET');
* let hotp = jsotp.HOTP('BASE32_ENCODED_SECRET');
* hotp.at(0); // => 432143
* hotp.verify(432143, 0); // => true
* hotp.verify(432143, 1); // => false