Hi,
Long long back, I had delivered an app (Ionic 1) to my client which was using LocalStorge (please don’t judge me)
Now, I’m delivering a major update where I’ve migrated all code to Ionic3 but my only concern is,
A lot of users are using this app and they are logged in!
Now, once they update, everyone will logout
What is better way to prevent handle this situation?
My proposed solution!
- I’ve made a function/Promise where I check if user has logged in.
- Now in this method, I will check for window.localStorage.getItem(‘User’).
- retrive data and set in storage.set()