Crypto Server
    Preparing search index...

    Function authorizeRoute

    • Enforce the central route policy (ROUTE_SCOPES in config/auth-policy.ts) for an authenticated request. Sends 403 and returns false when the principal lacks the route's scope, or when the route has no policy entry (fail closed). A request that matched no route passes, so the not-found handler can answer 404.

      Parameters

      • request: FastifyRequest
      • reply: FastifyReply
      • payload: AuthPayload

      Returns boolean