IGPAPI
    Preparing search index...

    Function LogInWithCode

    • Internal

      Submits the recovery code (caa.ar.submit_code.async). The recording's accepted code is answered with the login: an embedded login_response whose headers rotate the session, applied through the same path Login uses.

      Internal helper of the recovery screens; not exported from the package.

      The typed code is a scenario input; the screen's context token and action params are server-issued values the preceding answer carried. The recording's code was accepted; a rejected code's answer was not observed, so anything else is reported through the recovery flow's unknown-response error.

      Parameters

      Returns Effect<
          {
              logged_in_user: {
                  full_name?: string
                  | null;
                  is_private?: boolean | null;
                  is_verified?: boolean | null;
                  pk: number;
                  pk_id: string;
                  profile_pic_url?: string | null;
                  username: string;
              };
              status?: string;
              trusted_device_nonce?: string;
          },
          | BloksHttpError
          | LoginBloksParseError
          | AccountRecoveryBloksIssuedParamsMissingError
          | AccountRecoveryBloksUnknownResponseError,
          MobileSession
          | BloksHttp
          | MobileApplication
          | SessionHeaderParser,
      >