Changed the cookie store to localstorage for saving the auth data.
Could have saved the data in SQL lite, but I will first try with only
local storage.