Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / TokenFormatErrorKind

Type Alias: TokenFormatErrorKind

ts
type TokenFormatErrorKind = 
  | "empty-input"
  | "wrong-prefix"
  | "wrong-version"
  | "wrong-length"
  | "invalid-environment"
  | "invalid-entropy"
  | "invalid-checksum";

Defined in: packages/security/src/auth/errors.ts:17

Discriminator union for TokenFormatError. Lets callers branch on the concrete failure mode without parsing the message string.

Stable