Complete a session from a parsed Bloks login_response literal.
The whole answer is parsed and checked first — the profile and the embedded
headers map (ig-set-* / x-ig-set-*: authorization, dsUserId, rur,
www-claim, shbid, region hint, server-served password key) — and only then
applied through the session header parser. A LoginBloksParseError therefore
means the session was not changed. Ensures dsUserId is set from pk_id and
moves the session into the authenticated zero-rating phase.
The single application point of an accepted login answer: Login, the
approved trusted-notification poll, TwoFactorBloksVerifyCode and the two
recovery steps (recovery.bloks-submit-code, recovery.login-with-code).
Complete a session from a parsed Bloks
login_responseliteral.The whole answer is parsed and checked first — the profile and the embedded
headersmap (ig-set-*/x-ig-set-*: authorization, dsUserId, rur, www-claim, shbid, region hint, server-served password key) — and only then applied through the session header parser. ALoginBloksParseErrortherefore means the session was not changed. EnsuresdsUserIdis set frompk_idand moves the session into the authenticated zero-rating phase. The single application point of an accepted login answer:Login, the approved trusted-notification poll,TwoFactorBloksVerifyCodeand the two recovery steps (recovery.bloks-submit-code,recovery.login-with-code).