To offer more control to developers on how cookie duration is managed based on user consent, is it possible to allow cookieExpiresAfterDays to be a function ?
I'm working with orejime on general public websites which requires this kind of behavior especially for users who click decline on Notice or decline all on Modal. It is a pure business needs but it gives more control than a static value.
To offer more control to developers on how cookie duration is managed based on user consent, is it possible to allow
cookieExpiresAfterDays
to be a function ?This function could take 2 arguments:
consents
: https://github.com/empreinte-digitale/orejime/blob/61612c70d9d41b6b2b0bd9ef27d453428f424c39/src/consent-manager.js#L6config
: https://github.com/empreinte-digitale/orejime/blob/61612c70d9d41b6b2b0bd9ef27d453428f424c39/src/consent-manager.js#L5Motivations
I'm working with
orejime
on general public websites which requires this kind of behavior especially for users who click decline on Notice or decline all on Modal. It is a pure business needs but it gives more control than a static value.