StoredConsent
type StoredConsent = { c: Record<CategoryId, boolean>; j: JurisdictionId; pv: string; ts: number; v: 1;};Defined in: types.ts:155
The serialised consent record stored in the browser cookie.
Schema is versioned via v so future migrations don’t break readers.
Type declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
c | Record<CategoryId, boolean> | Map of category ID to granted/denied. | types.ts:159 |
j | JurisdictionId | Jurisdiction ID at the time of choice. | types.ts:165 |
pv | string | Policy version at the time of choice. | types.ts:161 |
ts | number | Unix epoch milliseconds when the choice was made. | types.ts:163 |
v | 1 | Schema version. | types.ts:157 |