Extends
Members
Methods
# async finalize(userID, code) → {Promise.<void>}
Validates the passcode obtained from the email.
Parameters:
| Name | Type | Description |
|---|---|---|
userID |
string
|
The UUID of the user. |
code |
string
|
The passcode digests. |
- See:
Promise.<void>
# getResendAfter(userID) → {number}
Returns the number of seconds the rate limiting is active for.
Parameters:
| Name | Type | Description |
|---|---|---|
userID |
string
|
The UUID of the user. |
number
# getTTL(userID) → {number}
Returns the number of seconds the current passcode is active for.
Parameters:
| Name | Type | Description |
|---|---|---|
userID |
string
|
The UUID of the user. |
number