trackkit / consent/types / ConsentStoredState
Interface: ConsentStoredState
Defined in: consent/types.ts:34
Persisted consent state with optional metadata.
This is the shape stored in local storage (or similar) when persistence is enabled.
Properties
status
status:
ConsentStatus
Defined in: consent/types.ts:38
Current consent status.
version?
optionalversion:string
Defined in: consent/types.ts:47
Optional consent policy/version identifier.
When the stored version is older than the active ConsentOptions.policyVersion, the consent manager may reset status to 'pending' and re-prompt the user.
method?
optionalmethod:"explicit"|"implicit"
Defined in: consent/types.ts:55
How consent was obtained, for audit trails.
'explicit'– e.g. banner/checkbox.'implicit'– e.g. inferred from continued use.