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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
allowAnonymous? | readonly | boolean | Whether 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 |
verifier | readonly | TokenVerifier | - | packages/server/src/middleware/auth.ts:23 |