feat(cred): harden client onboarding with Instagram linking portal, age verification bypass, and fleet runbook
This commit is contained in:
@@ -68,8 +68,12 @@ try:
|
||||
ws.close()
|
||||
dom = json.loads(resp["result"]["result"]["value"])
|
||||
# Heuristic: login buttons present + no avatar => logged out.
|
||||
# access/verification gate => needs verification.
|
||||
# No login buttons (or avatar present) => likely logged in.
|
||||
if dom["loginButtons"] and not dom["hasAvatar"]:
|
||||
if "access/verification" in dom["url"]:
|
||||
result["session_alive"] = False
|
||||
result["detail"] = "age verification gate (access/verification)"
|
||||
elif dom["loginButtons"] and not dom["hasAvatar"]:
|
||||
result["session_alive"] = False
|
||||
result["detail"] = f"login wall visible: {dom['loginButtons'][:2]}"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user