Skip to content

SafeVerifyResult

SafeVerifyResult<Brand> = { id: Id<Brand>; ok: true; } | { error: UnwrapError; ok: false; }

Defined in: src/codecs/wrapped/index.ts:73

Result returned by WrappedKeyCodec.safeVerify.

A verify-only view of UnwrapResult: the success branch carries only the canonical id, dropping the recovered lookupKey. The failure branch is identical to UnwrapResult’s. This shape lets the Wrapped key codec satisfy the HTTP adapters’ IdVerifiableCodec structural interface. See ADR-0036.

Brand extends string