Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase/auth] Property 'updateProject' doesn't exist on type 'ProjectConfigManager' #2833

Open
maleeqB opened this issue Jan 17, 2025 · 1 comment

Comments

@maleeqB
Copy link

maleeqB commented Jan 17, 2025

Based on the reCAPTCHA SMS toll fraud protection google article I should be able to call updateProject on a ProjectConfigManager.

I found no trace of this updateProject method, I checked the ProjectConfigManager reference too, no such method. I also tried the method updateProjectConfig but the updateProjectConfig does take an instance of a UpdateProjectConfigRequest, so the properties of that interface are emailPrivacyConfig, multiFactorConfig, passwordPolicyConfig, recaptchaConfig and smsRegionConfig, thus they differ completely from phoneEnforcementState, useSmsTollFraudProtection and tollFraudManagedRules needed by the hypothetical updateProject provided in the adminSdk snippet at toll fraud protection docs

Here is the code snippet for the admin sdk provided on the google article:

  // Update the reCAPTCHA config to enable toll fraud protection
  const updateProjectConfigRequest = {
    recaptchaConfig: {
      phoneEnforcementState: 'ENFORCE_MODE',
      useSmsTollFraudProtection: 'true',
      tollFraudManagedRules: [{ startScore: START_SCORE,
        action: 'BLOCK' }],
    }
  }
  let projectConfig = await getAuth().projectConfigManager().updateProject(updateProjectConfigRequest);
@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants