update README.md
This commit is contained in:
parent
9823974312
commit
574e56276b
17
README.md
17
README.md
|
@ -44,10 +44,19 @@ authenticator.verifyToken(formattedKey, '000 000');
|
||||||
|
|
||||||
### API
|
### API
|
||||||
|
|
||||||
* `generateKey()` generates a 32-character (160-bit) base32 key
|
### `generateKey()`
|
||||||
* `generateToken(formattedKey)` generates a 6-digit (20-bit) decimal time-based token
|
|
||||||
* `verifyToken(formattedKey, formattedToken)` validates a time-based token within a +/- 30 second (90 seconds) window
|
generates a 32-character (160-bit) base32 key
|
||||||
* returns `null` on failure or an object such as `{ delta: 0 }` on success
|
|
||||||
|
### `generateToken(formattedKey)`
|
||||||
|
|
||||||
|
generates a 6-digit (20-bit) decimal time-based token
|
||||||
|
|
||||||
|
### `verifyToken(formattedKey, formattedToken)`
|
||||||
|
|
||||||
|
validates a time-based token within a +/- 30 second (90 seconds) window
|
||||||
|
|
||||||
|
returns `null` on failure or an object such as `{ delta: 0 }` on success
|
||||||
|
|
||||||
QR Code
|
QR Code
|
||||||
-------
|
-------
|
||||||
|
|
Loading…
Reference in New Issue