-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request