Skip to content

ConsentState

What the API decided about recognising this respondent, and why.

messages: ConsentMessages


policyVersion: number


recognition: "granted" | "denied"


source: string

What decided it: your banner (cmp), the browser (globalPrivacyControl, doNotTrack) or the organization’s default.


tokenKind: "recognition" | "session"

recognition tokens may outlive a visit; session tokens are short-lived and for the form in progress only.


tokenLifetimeSeconds: number