function getUiConfig() {
  return {
    'callbacks': {
      // Called when the user has been successfully signed in.
      'signInSuccessWithAuthResult': function(authResult, redirectUrl) {
        if (authResult.user) {
          handleSignedInUser(authResult.user);
        }
        if (authResult.additionalUserInfo) {
          document.getElementById('is-new-user').textContent =
              authResult.additionalUserInfo.isNewUser ?
              'New User' : 'Existing User';
        }
        // Do not redirect.
        return false;
      }
    },
    // Opens IDP Providers sign-in flow in a popup.
    'signInFlow': 'popup',
    'signInOptions': [
      // TODO(developer): Remove the providers you don't need for your app.
      {
        provider: firebase.auth.GoogleAuthProvider.PROVIDER_ID,
        // Required to enable this provider in One-Tap Sign-up.
        authMethod: 'https://accounts.google.com',
        // Required to enable ID token credentials for this provider.
        clientId: CLIENT_ID
      },
      {
        provider: firebase.auth.FacebookAuthProvider.PROVIDER_ID,
        scopes :[
          'public_profile',
          'email',
          'user_likes',
          'user_friends'
        ]
      },
      firebase.auth.TwitterAuthProvider.PROVIDER_ID,
      firebase.auth.GithubAuthProvider.PROVIDER_ID,
      {
        provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
        // Whether the display name should be displayed in Sign Up page.
        requireDisplayName: true,
        signInMethod: getEmailSignInMethod()
      },
      {
        provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID,
        recaptchaParameters: {
          size: getRecaptchaMode()
        }
      },
      {
        provider: 'microsoft.com',
        providerName: 'Microsoft',
        buttonColor: '#2F2F2F',
        iconUrl: 'https://docs.microsoft.com/en-us/azure/active-directory/develop/media/howto-add-branding-in-azure-ad-apps/ms-symbollockup_mssymbol_19.png',
        loginHintKey: 'login_hint'
      },
      firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID
    ],
    // Terms of service url.
    'tosUrl': 'https://www.google.com',
    // Privacy policy url.
    'privacyPolicyUrl': 'https://www.google.com',
    'credentialHelper': CLIENT_ID && CLIENT_ID != 'YOUR_OAUTH_CLIENT_ID' ?
        firebaseui.auth.CredentialHelper.GOOGLE_YOLO :
        firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM
  };
}
function getUiConfig() {
  return {
    'callbacks': {
      // Called when the user has been successfully signed in.
      'signInSuccessWithAuthResult': function(authResult, redirectUrl) {
        if (authResult.user) {
          handleSignedInUser(authResult.user);
        }
        if (authResult.additionalUserInfo) {
          document.getElementById('is-new-user').textContent =
              authResult.additionalUserInfo.isNewUser ?
              'New User' : 'Existing User';
        }
        // Do not redirect.
        return false;
      }
    },
    // Opens IDP Providers sign-in flow in a popup.
    'signInFlow': 'popup',
    'signInOptions': [
      // TODO(developer): Remove the providers you don't need for your app.
      {
        provider: firebase.auth.GoogleAuthProvider.PROVIDER_ID,
        // Required to enable this provider in One-Tap Sign-up.
        authMethod: 'https://accounts.google.com',
        // Required to enable ID token credentials for this provider.
        clientId: CLIENT_ID
      },
      {
        provider: firebase.auth.FacebookAuthProvider.PROVIDER_ID,
        scopes :[
          'public_profile',
          'email',
          'user_likes',
          'user_friends'
        ]
      },
      firebase.auth.TwitterAuthProvider.PROVIDER_ID,
      firebase.auth.GithubAuthProvider.PROVIDER_ID,
      {
        provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
        // Whether the display name should be displayed in Sign Up page.
        requireDisplayName: true,
        signInMethod: getEmailSignInMethod()
      },
      {
        provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID,
        recaptchaParameters: {
          size: getRecaptchaMode()
        }
      },
      {
        provider: 'microsoft.com',
        providerName: 'Microsoft',
        buttonColor: '#2F2F2F',
        iconUrl: 'https://docs.microsoft.com/en-us/azure/active-directory/develop/media/howto-add-branding-in-azure-ad-apps/ms-symbollockup_mssymbol_19.png',
        loginHintKey: 'login_hint'
      },
      firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID
    ],
    // Terms of service url.
    'tosUrl': 'https://www.google.com',
    // Privacy policy url.
    'privacyPolicyUrl': 'https://www.google.com',
    'credentialHelper': CLIENT_ID && CLIENT_ID != 'YOUR_OAUTH_CLIENT_ID' ?
        firebaseui.auth.CredentialHelper.GOOGLE_YOLO :
        firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM
  };
}
function getUiConfig ( ) { return { 'callbacks' : { // Called when the user has been successfully signed in. 'signInSuccessWithAuthResult' : function ( authResult , redirectUrl ) { if ( authResult . user ) { handleSignedInUser ( authResult . user ) ; } if ( authResult . additionalUserInfo ) { document . getElementById ( 'is-new-user' ) . textContent = authResult . additionalUserInfo . isNewUser ? 'New User' : 'Existing User' ; } // Do not redirect. return false ; } } , // Opens IDP Providers sign-in flow in a popup. 'signInFlow' : 'popup' , 'signInOptions' : [ // TODO(developer): Remove the providers you don't need for your app. { provider : firebase . auth . GoogleAuthProvider . PROVIDER_ID , // Required to enable this provider in One-Tap Sign-up. authMethod : 'https://accounts.google.com' , // Required to enable ID token credentials for this provider. clientId : CLIENT_ID } , { provider : firebase . auth . FacebookAuthProvider . PROVIDER_ID , scopes : [ 'public_profile' , 'email' , 'user_likes' , 'user_friends' ] } , firebase . auth . TwitterAuthProvider . PROVIDER_ID , firebase . auth . GithubAuthProvider . PROVIDER_ID , { provider : firebase . auth . EmailAuthProvider . PROVIDER_ID , // Whether the display name should be displayed in Sign Up page. requireDisplayName : true , signInMethod : getEmailSignInMethod ( ) } , { provider : firebase . auth . PhoneAuthProvider . PROVIDER_ID , recaptchaParameters : { size : getRecaptchaMode ( ) } } , { provider : 'microsoft.com' , providerName : 'Microsoft' , buttonColor : '#2F2F2F' , iconUrl : 'https://docs.microsoft.com/en-us/azure/active-directory/develop/media/howto-add-branding-in-azure-ad-apps/ms-symbollockup_mssymbol_19.png' , loginHintKey : 'login_hint' } , firebaseui . auth . AnonymousAuthProvider . PROVIDER_ID ] , // Terms of service url. 'tosUrl' : 'https://www.google.com' , // Privacy policy url. 'privacyPolicyUrl' : 'https://www.google.com' , 'credentialHelper' : CLIENT_ID && CLIENT_ID != 'YOUR_OAUTH_CLIENT_ID' ? firebaseui . auth . CredentialHelper . GOOGLE_YOLO : firebaseui . auth . CredentialHelper . ACCOUNT_CHOOSER_COM } ; }
FirebaseUI initialization to be used in a Single Page application context.
 
@return {!Object} The FirebaseUI config.
FirebaseUI initialization to be used in a Single Page application context .
Returns the UI configuration for the AuthProvider.