Function: twoFactorLogin()
ts
function twoFactorLogin(
client,
error,
options
): Promise<PrivateResponseJson>;Completes a login that returned TwoFactorRequired by submitting the code. On success the session carries the user id and authorization, and is persisted.
Parameters
| Parameter | Type |
|---|---|
client | PrivateClient |
error | TwoFactorRequiredError |
options | TwoFactorOptions |
Returns
Promise<PrivateResponseJson>