parseConsentFromHeader
function parseConsentFromHeader(cookieHeader, options): null | StoredConsentDefined in: storage.ts:20
Parse a stored consent record from a raw Cookie header string.
Useful on the server: pass the request’s cookie header.
Returns null when the cookie isn’t present or is malformed.
Parameters
| Parameter | Type |
|---|---|
cookieHeader | undefined | string |
options | StorageOptions |
Returns
null | StoredConsent