Skip to content

check_authenticated_session

Check if the session ID is set and if the target IDC is set when using a session ID.

Check if the session ID is set and if the target IDC is set when using a session ID.

def check_authenticated_session(
session_id: Optional[str],
tt_target_idc: Optional[str],
session_required: bool,
) -> bool
  • session_id (Optional[str])
  • tt_target_idc (Optional[str])
  • session_required (bool)

bool — True if the session ID is set and the target IDC is set, False otherwise.

from TikTokLive.client.web.web_utils import check_authenticated_session

TikTokLive/client/web/web_utils.py:8