File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
FirebaseAuth/Sources/Swift/AuthProvider Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,21 @@ import Foundation
203203 }
204204
205205 let recaptchaVerifier = AuthRecaptchaVerifier . shared ( auth: auth)
206+
207+ if let settings = auth. settings,
208+ settings. isAppVerificationDisabledForTesting {
209+ // If app verification is disabled for testing
210+ // do not fetch recaptcha config, as this is not implemented in emulator
211+ // Treat this same as RCE enable status off
212+
213+ return try await verifyClAndSendVerificationCode (
214+ toPhoneNumber: phoneNumber,
215+ retryOnInvalidAppCredential: true ,
216+ multiFactorSession: multiFactorSession,
217+ uiDelegate: uiDelegate
218+ )
219+ }
220+
206221 try await recaptchaVerifier. retrieveRecaptchaConfig ( forceRefresh: true )
207222
208223 switch recaptchaVerifier. enablementStatus ( forProvider: . phone) {
You can’t perform that action at this time.
0 commit comments