Phone number sign-in (signInWithPhoneNumber) fails for all real phone numbers on our production site (Vercel-hosted, Firebase backend).
Browser console shows:
"Failed to initialize reCAPTCHA Enterprise config"
followed by automatic fallback to reCAPTCHA v2, which also fails with a 400 error from identitytoolkit.googleapis.com's sendVerificationCode endpoint.
What I've already confirmed as correct:
Identity Toolkit API enabled
reCAPTCHA Enterprise API enabled
reCAPTCHA Enterprise key created with correct authorized domains (matches production domain exactly)
Project on Blaze plan with unused SMS quota
Firebase SDK v12.17.0 (web)
Authorized Domains list in Firebase Auth settings is correct
IAM service account service-XXXXXXXXXXX@gcp-sa-identitytoolkit.iam.gserviceaccount.com has both "Identity Platform Service Agent" and "reCAPTCHA Enterprise Agent" roles
Additional clue: the auto-generated "Key for Identity Platform reCAPTCHA integration" (web) shows 0 total sessions and 0% across all metrics on its dashboard, despite many real sign-in attempts — suggesting the client SDK fails to initialize reCAPTCHA Enterprise before any request even reaches Google's servers.
A test/dummy phone number (added via Firebase's testing numbers feature) logs in successfully, confirming the rest of the auth flow and app code works correctly.
Issue has persisted 18+ hours across many configuration changes. What else could cause reCAPTCHA Enterprise to fail to initialize client-side even when the key, domains, and IAM roles are all correctly configured?