Skip to content

VisitorsLike

readonly consent: { recognition?: string; tokenKind?: string; } | null

The consent state the token was issued under.


readonly token: string | null

The current visitor token, or null. Read at the moment of each request.

optional subscribe(listener): () => void

Calls the listener whenever the token or consent changes. After forget() both are null.

(snapshot) => void

() => void