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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
acceptEnvironments? | readonly | readonly string[] | Optional accepted environments override for parseToken(...). | packages/security/src/auth/verify.ts:93 |
acceptPrefix? | readonly | string | Optional accepted prefix override for parseToken(...). | packages/security/src/auth/verify.ts:91 |
cacheCapacity? | readonly | number | Cache size for the warm-path lookup. Defaults to 1024. | packages/security/src/auth/verify.ts:95 |
cacheTtlMaxMs? | readonly | number | Hard cap on cache TTL in ms. Defaults to 60 000 (60 s). | packages/security/src/auth/verify.ts:97 |
maxConcurrentVerify? | readonly | number | Concurrent-verify cap. Defaults to 100. | packages/security/src/auth/verify.ts:109 |
now? | readonly | () => number | Wall-clock provider for testing. Defaults to Date.now. | packages/security/src/auth/verify.ts:111 |
pepper | readonly | SecretValue | Pepper 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? | readonly | number | Per-IP failure threshold inside the sliding window. Defaults to 5. | packages/security/src/auth/verify.ts:99 |
perIpLockoutMs? | readonly | number | Lockout duration in ms after the per-IP counter trips. Defaults to 5 * 60 000 (5 min). | packages/security/src/auth/verify.ts:103 |
perIpWindowMs? | readonly | number | Sliding-window length in ms for the per-IP counter. Defaults to 60 000 (60 s). | packages/security/src/auth/verify.ts:101 |
perTokenFailureThreshold? | readonly | number | Per-token failure threshold. Defaults to 10. | packages/security/src/auth/verify.ts:105 |
perTokenWindowMs? | readonly | number | Sliding-window length in ms for the per-token counter. Defaults to 5 * 60 000 (5 min). | packages/security/src/auth/verify.ts:107 |
tokenStore | readonly | AuthTokenStore | - | packages/security/src/auth/verify.ts:83 |