Interface: RevocationCheckOptions
Defined in: revocation.ts:39 (opens in a new tab)
PropertiesLink to this section
| Property | Type | Description | Defined in |
|---|---|---|---|
developing? | boolean | With no token: true answers live (local development and tests, where no feed exists); false answers unverified, so writes are refused. Default: true unless NODE_ENV is production. | revocation.ts:57 (opens in a new tab) |
fetch? | (input: RequestInfo | URL, init?: RequestInit) => Promise<Response> | revocation.ts:58 (opens in a new tab) | |
maxStaleMs? | number | Past this age a copy cannot vouch for a write. Default 10 min. | revocation.ts:47 (opens in a new tab) |
now? | () => number | revocation.ts:59 (opens in a new tab) | |
retryMs? | number | After a failed fetch, how long to wait before the next. Default 10 s. | revocation.ts:51 (opens in a new tab) |
timeoutMs? | number | One fetch's time limit. Default 3 s. | revocation.ts:49 (opens in a new tab) |
token? | string | This site's feed token. Default OC_REVOCATION_FEED_TOKEN. | revocation.ts:43 (opens in a new tab) |
ttlMs? | number | How long a copy is used before fetching again. Default 60 s. | revocation.ts:45 (opens in a new tab) |
url? | string | Default ${OC_AUTH_ISSUER ?? "https://ochk.io"}/api/auth/revocations. | revocation.ts:41 (opens in a new tab) |