Skip to content

readConsent

function readConsent(options): null | StoredConsent

Defined in: storage.ts:10

Read the stored consent record from document.cookie. Returns null on the server, when no cookie is set, or when the cookie is malformed.

Parameters

ParameterType
optionsStorageOptions

Returns

null | StoredConsent