Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / / AuthMiddlewareOptions

Interface: AuthMiddlewareOptions

Defined in: packages/server/src/middleware/auth.ts:22

Options accepted by createAuthMiddleware. Tests inject a stub verifier; production wiring uses the verifier built during the server's pre-bind step.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
allowAnonymous?readonlybooleanWhether to allow unauthenticated requests through. Used by health and (when explicitly opted-in) by the public read endpoints. When false (the default), missing / malformed / invalid tokens short-circuit the request with 401.packages/server/src/middleware/auth.ts:30
verifierreadonlyTokenVerifier-packages/server/src/middleware/auth.ts:23