live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/auth-core


@orangecheck/auth-core / readAllSessionCookies

Function: readAllSessionCookies()

function readAllSessionCookies(cookieHeader: string | null | undefined): string[];

Defined in: index.ts:440

Read EVERY oc_session value out of a raw Cookie: header string. Multiple same-name cookies are legitimate (e.g. a stale host-scoped cookie shadowing the Domain=.ochk.io one) — verification should try each rather than trust ordering.

Parameters

ParameterType
cookieHeaderstring | null | undefined

Returns

string[]