def METHOD_NAME(request: HttpRequest) -> str:
    try:
        # request.headers = {"Authorization": "JWT abc123def456"}
        auth_header: str = request.META["HTTP_AUTHORIZATION"]
        return auth_header.split(" ", 1)[1]
    except (KeyError, IndexError):
        raise AtlassianConnectValidationError("Missing/Invalid authorization header")