Closed ricardobrg closed 1 year ago
applyConsent should become guard() and return a status object containing 'isAllowed', 'license', and 'message' with optional functions to execute onTrue() and onFalse(). The status object should be passed to the optional functions.
applyConsent
guard()
onTrue()
onFalse()
Follow spec here: https://docs.mytiki.com/docs/enforce-license
applyConsent
should becomeguard()
and return a status object containing 'isAllowed', 'license', and 'message' with optional functions to executeonTrue()
andonFalse()
. The status object should be passed to the optional functions.