def METHOD_NAME(request: HttpRequest, provider: str) -> Integration | None:
    token = (
        get_token(request=request)
        if request.META.get("HTTP_AUTHORIZATION") is not None
        else request.GET.get("jwt")
    )
    rpc_integration = get_integration_from_jwt(
        token=token,
        path=request.path,
        provider=provider,
        query_params=request.GET,
        method=request.method if request.method else "POST",
    )
    return Integration.objects.filter(id=rpc_integration.id).first()