Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/cookie-consent-web-client/src/decision/getUserDecision"

Index

Namespaces

Type aliases

Functions

Type aliases

Decision

Decision: { consent: DecisionConsentGroups; previousUuids: string[]; revision: string; uuid: string }

Type declaration

  • consent: DecisionConsentGroups

    The consent groups are always associated to the latest given consent and hold only the IDs.

  • previousUuids: string[]

    Since v3 all UUIDs are hold in the cookie comma-separated so the history of the given consents is no longer trackable in database and statistics. That means: Each consent gets it's own UUID.

  • revision: string

    The revision is always associated to the latest given consent.

  • uuid: string

    The latest given consent.

DecisionConsentGroups

DecisionConsentGroups: Record<number, number[]>

Functions

getUserDecision

  • getUserDecision(cookieName: string): false | Decision
  • Get current user decision from the cookie value in a minimal form.

    Parameters

    • cookieName: string

    Returns false | Decision

Generated using TypeDoc