Web
In my last post, I talked about storing user credentials from Everlive in localstorage.
This gave me a nice way to keep a user logged in, between page refreshes. After having used
this for a bit, I realized that I was adding new records to the local storage on every
login. This was causing a problem because I wasn't getting the right credentials loaded
all the time. Every time the wrong credentials were loaded, the app thought I was not logged
in because the credentials were invalid. To fix this, I needed to fix my storage so that it
always loaded a single record and saved that single record.