Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / VerifyResult
Type Alias: VerifyResult
ts
type VerifyResult =
| {
ok: true;
token: VerifiedToken;
}
| {
ok: false;
reason: VerifyFailureReason;
retryAfterMs?: number;
};Defined in: packages/security/src/auth/verify.ts:58
Discriminated result of a verify call. The pipeline never throws on the unhappy path so callers can map reason directly to an HTTP status code without try/catch in their hot path.