Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / VerifierOptions

Interface: VerifierOptions

Defined in: packages/security/src/auth/verify.ts:82

Options that govern the rate-limit, lockout, and cache behaviour of the verify pipeline.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
acceptEnvironments?readonlyreadonly string[]Optional accepted environments override for parseToken(...).packages/security/src/auth/verify.ts:93
acceptPrefix?readonlystringOptional accepted prefix override for parseToken(...).packages/security/src/auth/verify.ts:91
cacheCapacity?readonlynumberCache size for the warm-path lookup. Defaults to 1024.packages/security/src/auth/verify.ts:95
cacheTtlMaxMs?readonlynumberHard cap on cache TTL in ms. Defaults to 60 000 (60 s).packages/security/src/auth/verify.ts:97
maxConcurrentVerify?readonlynumberConcurrent-verify cap. Defaults to 100.packages/security/src/auth/verify.ts:109
now?readonly() => numberWall-clock provider for testing. Defaults to Date.now.packages/security/src/auth/verify.ts:111
pepperreadonlySecretValuePepper used to derive the per-token HMAC. The pepper is supplied as a SecretValue so its bytes never live in a plain string at rest.packages/security/src/auth/verify.ts:89
perIpFailureThreshold?readonlynumberPer-IP failure threshold inside the sliding window. Defaults to 5.packages/security/src/auth/verify.ts:99
perIpLockoutMs?readonlynumberLockout duration in ms after the per-IP counter trips. Defaults to 5 * 60 000 (5 min).packages/security/src/auth/verify.ts:103
perIpWindowMs?readonlynumberSliding-window length in ms for the per-IP counter. Defaults to 60 000 (60 s).packages/security/src/auth/verify.ts:101
perTokenFailureThreshold?readonlynumberPer-token failure threshold. Defaults to 10.packages/security/src/auth/verify.ts:105
perTokenWindowMs?readonlynumberSliding-window length in ms for the per-token counter. Defaults to 5 * 60 000 (5 min).packages/security/src/auth/verify.ts:107
tokenStorereadonlyAuthTokenStore-packages/security/src/auth/verify.ts:83