firebase / firebaseui-web-react

React Wrapper for firebaseUI Web
Apache License 2.0
1.26k stars 249 forks source link

Disable Sign Up config option for Internal Apps/Services? #136

Open hiyajio opened 3 years ago

hiyajio commented 3 years ago

I was wondering if/when this project will include the disable sign up config from v4.8.0 of firebaseui-web for configuring the email provider?

I feel like this would be a necessary option to have for this project as it is needed for internal web services and would love to be able to tap into this feature while keeping it all in react.

Nikola-Milovic commented 2 years ago

Any updates on this? Have the same use-case

Nikola-Milovic commented 2 years ago

@saejhi , Idk if its helpful, just add the option like normal and it works. Looked through the code and it just passes the config to the firebase-ui so all of the options are the same

   signInOptions: [
        {
            provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
            requireDisplayName: false,
            disableSignUp: { status: true, adminEmail: "" },
        },
    ],