✅ Address validators
Address uses the shared authentication validator and has no Address-specific validator exports.
Inventory
| Validator | Reads | Success condition | Failure / error | Consumers |
|---|---|---|---|---|
isAuthenticated() | context.authenticate or Bearer token | Selected adapter accepts the request | Default Bearer failure is 401; custom adapter errors propagate | findAddressRoute |
Details
isAuthenticated()
Implementation
Signature: isAuthenticated(): Validator. Address invokes it directly as isAuthenticated()—the route's only validator—and the service runs it before the handler pipeline.
It calls context.authenticate(payload) when the service supplies an adapter, otherwise it falls back to Bearer-token authentication. The Address service supplies the adapter from authMode; cookie mode requires host-installed cookie-parser middleware. The default Bearer adapter throws 401 for missing, invalid, or failed access-token authentication; a supplied adapter's error propagates unchanged. See the canonical validator reference.
Consumers: findAddressRoute.