Replies: 1 comment
-
So I assume that this is why it happens: I tried to patch this file with setting up provider as it was made for phone auth method, but I'm getting error: |
Beta Was this translation helpful? Give feedback.
-
So I assume that this is why it happens: I tried to patch this file with setting up provider as it was made for phone auth method, but I'm getting error: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have an app that works with multiple firebase projects (prod and dev).
Testers can switch between environments while app is running. FCM and analytics are setup for prod only.
Authentication with password and email link as single factor worked fine with both configurations until we implemented multi factor auth.
It seems like the authentication with reCAPTCHA always points to the [DEFAULT] app and ignores secondary app. When I try to login with secondary config, the first step with email link authentication passed as expected but when I'm trying to resolve second factor I'm getting the following error when reCAPTCHA web page is opened:
[auth/internal-error] An internal error has occurred, please try again.
The mfaResolver contains valid hints:
[{"displayName":"","factorId":"phone","uid":"...","enrollmentDate":"2023-07-04T12:06:23Z"}]
But verifyPhoneNumberWithMultiFactorInfo throws the auth/internal-error so I'm not getting the verificationId
In the logs I see the following output:
So in this link I see the prod project instead of dev
But when I use default prod config it works. And also if I force dev configuration as ['DEFAULT'] it also works fine.
Using firebase 17.4.2.
Am I doing something wrong in my code or the second factor is not supported for multiple firebase apps?
Beta Was this translation helpful? Give feedback.
All reactions