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
|
||||
|
||||
* `generateKey()` generates a 32-character (160-bit) base32 key
|
||||
* `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
|
||||
### `generateKey()`
|
||||
|
||||
generates a 32-character (160-bit) base32 key
|
||||
|
||||
### `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
|
||||
-------
|
||||
|
|
Loading…
Reference in New Issue