File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
FirebaseAuth/Sources/Swift/AuthProvider Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -346,15 +346,12 @@ import Foundation
346
346
} catch {
347
347
let nserror = error as NSError
348
348
// reCAPTCHA Flow if it's an invalid app credential or a missing app token.
349
- if ( nserror. code == AuthErrorCode . internalError. rawValue &&
350
- ( nserror. userInfo [ NSUnderlyingErrorKey] as? NSError ) ? . code ==
351
- AuthErrorCode . invalidAppCredential. rawValue) ||
352
- nserror. code == AuthErrorCode . missingAppToken. rawValue {
353
- return try await CodeIdentity
354
- . recaptcha ( reCAPTCHAFlowWithUIDelegate ( withUIDelegate: uiDelegate) )
355
- } else {
349
+ guard nserror. code == AuthErrorCode . invalidAppCredential. rawValue || nserror
350
+ . code == AuthErrorCode . missingAppToken. rawValue else {
356
351
throw error
357
352
}
353
+ return try await CodeIdentity
354
+ . recaptcha ( reCAPTCHAFlowWithUIDelegate ( withUIDelegate: uiDelegate) )
358
355
}
359
356
}
360
357
You can’t perform that action at this time.
0 commit comments