safe-react
safe-react copied to clipboard
Cookie consent: store in localStorage, not in cookies
Description
Cookies are sometimes prefixed with our legacy immortal keys. In line with migrating out localStorage
keys, we should remove the prefix from our cookies.
Requirements
- Remove
'v1_MAINNET__'
prefix from any new cookies being set - Migrate current cookies
alternatively
Move the only single cookie we have (cookie banner consent) to localStorage.
Move the only single cookie we have (cookie banner consent) to localStorage.
I like this idea. The only thing to keep in mind is that we use a 7-day expiration policy if the user didn't accept GA. I.e. we show them the banner again in a week in this case.