import {Platform} from '@ionic/angular';
import {DefaultBrowser} from 'ionic-appauth';
import {CapacitorBrowser} from 'ionic-appauth/lib/capacitor';

export const browserFactory = (platform: Platform) => {
  return platform.is('capacitor')
    ? new CapacitorBrowser()
    : new DefaultBrowser();
};
