Function: readOcSessionToken()
function readOcSessionToken(headers:
| Headers
| SessionRequestHeaders): string | null;
Defined in: index.ts:979 (opens in a new tab)
The token a request carries, as getOcSession reads it: the
oc_session cookie first, then Authorization: Bearer <token>. Null when
it carries neither. Pure: verifies nothing.
ParametersLink to this section
| Parameter | Type |
|---|---|
headers | | Headers | SessionRequestHeaders |
ReturnsLink to this section
string | null