Skip to content
On this page

Function: cookiePickRefused()

TypeScript
function cookiePickRefused(method: string | undefined, headers: IncomingRequestHeaders): boolean;

Defined in: index.ts:735 (opens in a new tab)

True when a state change carries more than one oc_session cookie and no per-tab token. The browser's cookie order would then choose whose account it acts for, so no reader takes a session from that jar. A read (GET, HEAD, OPTIONS) and a request with a tab token are never refused here. Every oc_session value counts, whether or not it verifies.

ParametersLink to this section

ParameterType
methodstring | undefined
headersIncomingRequestHeaders

ReturnsLink to this section

boolean