VueUse
wrapper for universal-cookie . Access and modify cookies using vue composition-api. By default, you should use it inside setup(), but this function also works anywhere else. Let you optionally specify a list of cookie names your component depend on or that should trigger a re-render. If unspecified, it will render on every cookie change.
https://vueuse.org/integrations/useCookies/