import {Platform} from '@ionic/angular';
import {CapacitorSecureStorage} from 'ionic-appauth/lib/capacitor';
import {IonicStorage} from 'ionic-appauth/lib';

export const storageFactory = (platform: Platform) => {
  return platform.is('capacitor')
    ? new CapacitorSecureStorage()
    : new IonicStorage();
};
