Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / verifyOffline

Function: verifyOffline()

ts
function verifyOffline(input, opts?): 
  | {
  env: string;
  ok: true;
}
  | {
  ok: false;
  reason: string;
};

Defined in: packages/security/src/auth/token-format.ts:378

Cheap structural pre-filter used before doing any HMAC or DB work. Identical to parseToken but returns the boolean shape that the verify pipeline expects.

Parameters

ParameterType
inputstring
optsParseTokenOptions

Returns

| { env: string; ok: true; } | { ok: false; reason: string; }

Stable