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.
Signature
Section titled “Signature”def check_authenticated_session( session_id: Optional[str], tt_target_idc: Optional[str], session_required: bool,) -> boolParameters
Section titled “Parameters”session_id(Optional[str])tt_target_idc(Optional[str])session_required(bool)
Returns
Section titled “Returns”bool — True if the session ID is set and the target IDC is set, False otherwise.
Import
Section titled “Import”from TikTokLive.client.web.web_utils import check_authenticated_session