StoredConsent
type StoredConsent = { c: Record<CategoryId, boolean>; j: JurisdictionId; pv: string; ts: number; v: 1;};Defined in: types.ts:162
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:166 |
j | JurisdictionId | Jurisdiction ID at the time of choice. | types.ts:172 |
pv | string | Policy version at the time of choice. | types.ts:168 |
ts | number | Unix epoch milliseconds when the choice was made. | types.ts:170 |
v | 1 | Schema version. | types.ts:164 |