question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting `signInOptions.disableSignUp.status = true` for `GoogleAuthProvider` still allows new users to register.

See original GitHub issue

[REQUIRED] Describe your environment

  • Operating System version: macOS 11.4
  • Browser version: Chrome 91
  • Firebase UI version: 4.8.0
  • Firebase SDK version: 8.6.8

[REQUIRED] Describe the problem

Setting signInOptions.disableSignUp.status = true for GoogleAuthProvider does not work as expected and still allows new users to register.

Steps to reproduce:

  1. Initialize using the following signInOptions:
signInOptions: [
    {
      provider: firebase.auth.GoogleAuthProvider.PROVIDER_ID,
      scopes: ["https://www.googleapis.com/auth/userinfo.email"],
      disableSignUp: {
        status: true,
      },
    }
]
  1. Try to sign up via Google with a new account

Relevant Code:

Expected: New users can not sign up with this provider set to disabled

Actual: New users can sign up and create new account with this provider.

Note: the option does work as expected with email provider.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xil222commented, Jul 19, 2021

@davidbielik Thanks for the advice, we’ll make it more clear in the doc.

1reaction
davidbielikcommented, Jul 16, 2021

Thanks @xil222 looks like this feature is beyond a simple Firebase integration (it’s a separate API I need to enable). If that’s the case, it might be worth clarifying the conditions to use it in the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable Signup in Firebase 3.x - Stack Overflow
I tried some rules on users and even to stop writing to firebase at all. However registration was still possible. Disabling Email/Password ...
Read more >
Easily add sign-in to your Web app with FirebaseUI - Google
In the Firebase console, open the Authentication section and enable email and password authentication. · Add the email provider ID to the list...
Read more >
FirebaseUI for Web — Auth - Firebase Open Source
You can disable new user sign up with email providers by setting the flag disableSignUp.status to true . This will display an error...
Read more >
How to disable Signup in Firebase 3.x ... - GOOGLE IT SYSTEM
I have created some users using firebase.auth().signInWithEmailAndPassword and would like to stop signUp now, but keep signIn working.
Read more >
this operation is restricted to administrators only - You.com
Enable authentication methods 'email' and 'google'; Register a new web app in firebase, and replace the firebaseConfig object in the code below with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found