File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Sources/Swift/AuthProvider Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 44 for decoding ` nil ` values. (#14212 )
55- [ fixed] Address Xcode 16.2 concurrency compile time issues. (#14279 )
66- [ fixed] Fix handling of cloud blocking function errors. (#14052 )
7+ - [ fixed] Fix phone auth flow to skip RCE verification if appVerificationDisabledForTesting is set. (#14242 )
78
89# 11.6.0
910- [ added] Added reCAPTCHA Enterprise support for app verification during phone
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