Skip to content
On this page

Function: refusesEvenReads()

TypeScript
function refusesEvenReads(claims: RevocableClaims, check?: RevocationCheck): Promise<false | "revoked" | "unverified">;

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

For a site that holds a person's data (an account, money, messages, secrets): whether to refuse the session for any request, reads included. "revoked" when the list ends it; "unverified" when no copy of the list is fresh enough to vouch for it, which passes once the auth host answers again (answer 503 and ask the person to try again, never "signed out"); false when it may go on. Uses the process-wide check unless given one.

ParametersLink to this section

ParameterType
claimsRevocableClaims
checkRevocationCheck

ReturnsLink to this section

Promise<false | "revoked" | "unverified">