Skip to content

consent property 'flag' ambigious #23

@rockxwre

Description

@rockxwre

Description

With ConsentCookie.get("<app id>") you will get an object that represents a consent.
This object will have a property called flag. Like stated in the documentation the value 0 represents a disabled (rejected?) consent and the value 1 represents an enabled (granted?) consent.
I think the term flag is ambiguous.

Expected Behavior

In my opinion, it would be better to have this flag property only for internal use and backward compatibility.
Instead, functions like:

  • ConsentCookie.isGranted("<app id">)
  • ConsentCookie.isRejected("<app id">)
  • ConsentCookie.get("<app id>").isGranted()
  • ConsentCookie.get("<app id>").isRejected()
    will be more intuitive to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions