Replace Meteor localStorage


I been trying for days to found a way to replace the default localStorage that meteor uses without success, so I want to know how can i replace the meteor localStorage which is stored in Meteor._localStorage. I obviously can replace the Meteor._localStorage but just after it is already used by the AccountsBase package, so at this point the start autologin is not executed.


Have you tried to use localStorage? e.g: localStorage.Meteor.loginToken = 'some token'

No i wanted to replace the localStorage that meteor uses, or at least the functions of that proxy.

I ended up cloning the localstorage package, changed ir and installed it locally.

I replaced the functions of the proxy getItem(key), setItem(key, val) and removeItem(key) and use a mix; for some properties i use the localStorage and for others i use sessionStorage.