Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / AuthTokenRecord

Interface: AuthTokenRecord

Defined in: packages/core/src/contracts/auth-token-store.ts:8

Persisted server auth token record. Holds a per-token HMAC hash + scope grammar; raw tokens are never persisted (the runtime carries them via SecretValue).

Stable

Properties

PropertyModifierTypeDescriptionDefined in
createdAtreadonlystring-packages/core/src/contracts/auth-token-store.ts:17
expiresAt?readonlystring-packages/core/src/contracts/auth-token-store.ts:18
hashHexreadonlystringHMAC-SHA256 of the secret part, peppered. Hex-encoded.packages/core/src/contracts/auth-token-store.ts:12
idreadonlystringStable identifier (the public part of the token, before the secret).packages/core/src/contracts/auth-token-store.ts:10
label?readonlystringOptional human-readable label rendered in CLI listings.packages/core/src/contracts/auth-token-store.ts:14
lastUsedAt?readonlystring-packages/core/src/contracts/auth-token-store.ts:20
revokedAt?readonlystring-packages/core/src/contracts/auth-token-store.ts:19
scopesreadonlyreadonly string[]Scope grammar — opaque strings of the form <resource>:<action>[:<id-or-glob>].packages/core/src/contracts/auth-token-store.ts:16