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 4
4
for decoding ` nil ` values. (#14212 )
5
5
- [ fixed] Address Xcode 16.2 concurrency compile time issues. (#14279 )
6
6
- [ fixed] Fix handling of cloud blocking function errors. (#14052 )
7
+ - [ fixed] Fix phone auth flow to skip RCE verification if appVerificationDisabledForTesting is set. (#14242 )
7
8
8
9
# 11.6.0
9
10
- [ 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
203
203
}
204
204
205
205
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
+
206
221
try await recaptchaVerifier. retrieveRecaptchaConfig ( forceRefresh: true )
207
222
208
223
switch recaptchaVerifier. enablementStatus ( forProvider: . phone) {
You can’t perform that action at this time.
0 commit comments