Function: caaLogin()
ts
function caaLogin(
client,
credentials,
options?
): Promise<PrivateResponseJson>;Logs in through Instagram's current Android CAA/Bloks flow, which replaced the retired accounts/login/ endpoint. Registers the device's USDID key, runs the CAA preflight (account access context + keystore attestation), then sends the encrypted password. On success the session carries the user id and the authorization token. When the account needs a two-factor code, the login resolves it itself if options.twoFactor says where the code comes from; otherwise a CaaTwoFactorRequiredError is thrown, to be resolved with resolveCaaTwoFactor.
Parameters
| Parameter | Type |
|---|---|
client | PrivateClient |
credentials | CaaLoginCredentials |
options? | CaaLoginOptions |
Returns
Promise<PrivateResponseJson>