drupflare/worker - v1.0.0
    Preparing search index...

    Function isAuthenticatedRequest

    • Whether a request is authenticated, decided from the request alone.

      Must be decided before any DO hop. The reservation exists to stop authenticated traffic reaching the object once the allowance is gone; a check made inside the object has already spent the DO request it was meant to protect.

      Parameters

      • request: { headers: { get(name: string): string | null } }

        the inbound request

      Returns boolean