DEV Community

Discussion on: Quasar - SSR and using cookies

Collapse
 
tobymosque profile image
Tobias Mesquita

Vue.prototype is shared between all Vue instances, what will result in a single axios instance to all Vue instances (a singleton).

But in that particular case, a singleton can mess with our autentication logic, since that is being handled into the axios interceptor and this reads the token from the Cookies plugin, what isn't a singleton, what can lead to a data leak.