def get_access_token() -> Optional[str]:
    """
    This function fetches the access token from Sentinel.
    Returns:
    str: The access token if the request was successful, None otherwise.
    """
    try:
        response = session.post(
            TOKEN_ENDPOINT, data=PAYLOAD, headers=HEADERS, timeout=TIMEOUT
        )
        response.raise_for_status()  # check if we got a HTTP error
        return response.json().get("access_token")
    except requests.HTTPError as http_err:
        logging.error("HTTP error occurred: %s", http_err)
        return None

    This function fetches the access token from Sentinel.
    Returns:
    str: The access token if the request was successful, None otherwise.
    
Solutions/CognyteLuminar/Data Connectors/CognyteLuminar/main.py