メインコンテンツまでスキップ
バージョン: 🚧 Canary

✅ Address validators

Address uses the shared authentication validator and has no Address-specific validator exports.

Inventory

ValidatorReadsSuccess conditionFailure / errorConsumers
isAuthenticated()context.authenticate or Bearer tokenSelected adapter accepts the requestDefault Bearer failure is 401; custom adapter errors propagatefindAddressRoute

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.