Skip to content

Interface: RevocationCheckOptions

Defined in: revocation.ts:39 (opens in a new tab)

PropertiesLink to this section

PropertyTypeDescriptionDefined in
developing?booleanWith 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?numberPast this age a copy cannot vouch for a write. Default 10 min.revocation.ts:47 (opens in a new tab)
now?() => numberrevocation.ts:59 (opens in a new tab)
retryMs?numberAfter a failed fetch, how long to wait before the next. Default 10 s.revocation.ts:51 (opens in a new tab)
timeoutMs?numberOne fetch's time limit. Default 3 s.revocation.ts:49 (opens in a new tab)
token?stringThis site's feed token. Default OC_REVOCATION_FEED_TOKEN.revocation.ts:43 (opens in a new tab)
ttlMs?numberHow long a copy is used before fetching again. Default 60 s.revocation.ts:45 (opens in a new tab)
url?stringDefault ${OC_AUTH_ISSUER ?? "https://ochk.io"}/api/auth/revocations.revocation.ts:41 (opens in a new tab)