/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { IPPFxaAuthProviderSingleton } from "moz-src:///toolkit/components/ipprotection/fxa/IPPFxaAuthProvider.sys.mjs"; import { IPPFxaActivateAuthProviderSingleton } from "moz-src:///toolkit/components/ipprotection/fxa/IPPFxaActivateAuthProvider.sys.mjs"; import { androidEnrollAndEntitle } from "moz-src:///toolkit/components/ipprotection/android/IPPAndroidEnrollAndEntitle.sys.mjs"; import { IPPAndroidSignInWatcher } from "moz-src:///toolkit/components/ipprotection/android/IPPAndroidSignInWatcher.sys.mjs"; const IPPAndroidAuthProvider = Services.prefs.getBoolPref( "toolkit.ipProtection.fxa.useActivateFlow", false ) ? new IPPFxaActivateAuthProviderSingleton(IPPAndroidSignInWatcher) : new IPPFxaAuthProviderSingleton( IPPAndroidSignInWatcher, androidEnrollAndEntitle ); export { IPPAndroidAuthProvider };