You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run a callback that will remove cookies after every navigation etc, to ensure any rogue cookies set even after initial consent change are deleted.
In my own fork I was exposing the functionality of the old autoclearCookies function, and calling this. This function is now autoclearCookiesHelper, but is not exported.
Would there be a current alternative, or would you be open to a PR that adds this somehow?
Proposed solution
Export the autoclearCookiesHelper function, or export a helpers object such as helpers: { autoclearCookiesHelper } for advanced usage.
Or
Export a performAutoclearCookies function that calls autoclearCookiesHelper(true).
Additional details
No response
The text was updated successfully, but these errors were encountered:
timkrins
changed the title
[Feat]: callable method of removing cookies, like aclearDisabledCategoryCookies function
[Feat]: callable method of removing cookies, like a clearDisabledCategoryCookies function
Jul 26, 2024
Hmm... maybe I could use a workaround such as calling CookieConsent.validConsent() && CookieConsent.acceptCategory(CookieConsent.getUserPreferences().acceptedCategories) in my callback...
timkrins
changed the title
[Feat]: callable method of removing cookies, like a clearDisabledCategoryCookies function
[Feat]: callable method of removing cookies, like a performAutoclearCookies function
Jul 26, 2024
Description
I want to run a callback that will remove cookies after every navigation etc, to ensure any rogue cookies set even after initial consent change are deleted.
In my own fork I was exposing the functionality of the old
autoclearCookies
function, and calling this. This function is nowautoclearCookiesHelper
, but is not exported.Would there be a current alternative, or would you be open to a PR that adds this somehow?
Proposed solution
Export the
autoclearCookiesHelper
function, or export ahelpers
object such ashelpers: { autoclearCookiesHelper }
for advanced usage.Or
Export a
performAutoclearCookies
function that callsautoclearCookiesHelper(true)
.Additional details
No response
The text was updated successfully, but these errors were encountered: