Skip to content

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 ​

ParameterType
clientPrivateClient
errorTwoFactorRequiredError
optionsTwoFactorOptions

Returns ​

Promise<PrivateResponseJson>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.