Stone.js API
    Preparing search index...
    • Route guard requiring the authenticated principal to hold every given OAuth scope.

      Parameters

      • ...required: string[]

        The required scopes.

      Returns FunctionalMiddleware<IncomingEvent, OutgoingResponse>

      A functional middleware that throws AuthenticationError (401) when anonymous or InsufficientScopeError (403) when a scope is missing.