Replace localstorage w/ dualstorage, store only uid & auth in cookie