Ionic 3: Migrate data from localStorage to indexedDB on app update

I am creating a hybrid application using Ionic 3. Earlier i was using localStorage to store auth token and other data. Due to performance issues and storage limit, now i am using ionic storage to store data on devices.

Now I have to release latest version of application in stores and I want to move data from localStorage to ionic storage so that users won’t face any issue. If I’ll now migrate my data then new app will check token using ionic storage but my data is in localStorage.