Skip to content

Commit f56161a

Browse files
committed
Revert parts of previous commit
1 parent b570287 commit f56161a

File tree

3 files changed

+0
-84
lines changed

3 files changed

+0
-84
lines changed

FirebaseAuth/Sources/ObjC/FIRRecaptchaBridge.m

Lines changed: 0 additions & 40 deletions
This file was deleted.

FirebaseAuth/Sources/Public/FirebaseAuth/FIRRecaptchaBridge.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

FirebaseAuth/Sources/Swift/Utilities/AuthRecaptchaVerifier.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,6 @@
174174
} catch {
175175
return ("", error, true, true)
176176
}
177-
} else if let recaptcha = NSClassFromString("Recaptcha") {
178-
// Fall back to attempting to connect with pre-18.7.0 RecaptchaEnterprise.
179-
do {
180-
let recaptcha = __fir_castToRecaptchaProtocolFromClass(recaptcha)
181-
let client = try await recaptcha.getClient(withSiteKey: siteKey)
182-
recaptchaClient = client
183-
return await retrieveToken(actionString: actionString, fakeToken: fakeToken)
184-
} catch {
185-
return ("", error, true, true)
186-
}
187177
} else {
188178
// RecaptchaEnterprise not linked.
189179
return ("", nil, false, false)
@@ -198,12 +188,6 @@
198188
let action = recaptchaAction.init(customAction: actionString)
199189
let token = try? await recaptchaClient!.execute(withAction: action)
200190
return (token ?? "NO_RECAPTCHA", nil, true, true)
201-
} else if let recaptchaAction = NSClassFromString("RecaptchaAction") {
202-
// Fall back to attempting to connect with pre-18.7.0 RecaptchaEnterprise.
203-
let recaptchaAction = __fir_castToRecaptchaActionProtocolFromClass(recaptchaAction)
204-
let action = recaptchaAction.init(customAction: actionString)
205-
let token = try? await recaptchaClient!.execute(withAction: action)
206-
return (token ?? "NO_RECAPTCHA", nil, true, true)
207191
} else {
208192
// RecaptchaEnterprise not linked.
209193
return ("", nil, false, false)

0 commit comments

Comments
 (0)