I am not sure what exactly causes this, but executing secureLocalStorage.setItem("test", undefined); then doing a website refresh and secureLocalStorage.getItem("test"); gets back "undefined". It should not be returning back a string as that is not what was saved.