Skip to main content
Version: 0.13.0 (Previous)

โœ… 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.