Skip to content

Commit 73a7ede

Browse files
committed
resolve auth.backend.call conflict
1 parent af1e70b commit 73a7ede

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ import Foundation
243243
provider: .phone,
244244
action: .sendVerificationCode
245245
)
246-
let response = try await AuthBackend.call(with: request)
246+
let response = try await auth.backend.call(with: request)
247247
return response.verificationID
248248
} catch {
249249
return try await handleVerifyErrorWithRetry(error: error,
@@ -270,7 +270,7 @@ import Foundation
270270
requestConfiguration: auth
271271
.requestConfiguration)
272272
do {
273-
let response = try await AuthBackend.call(with: request)
273+
let response = try await auth.backend.call(with: request)
274274
return response.verificationID
275275
} catch {
276276
return try await handleVerifyErrorWithRetry(
@@ -300,7 +300,7 @@ import Foundation
300300
codeIdentity: CodeIdentity.empty,
301301
requestConfiguration: auth.requestConfiguration
302302
)
303-
let response = try await AuthBackend.call(with: request)
303+
let response = try await auth.backend.call(with: request)
304304
return response.verificationID
305305
}
306306
guard let session else {
@@ -323,7 +323,7 @@ import Foundation
323323
provider: .phone,
324324
action: .mfaSmsEnrollment
325325
)
326-
let response = try await AuthBackend.call(with: request)
326+
let response = try await auth.backend.call(with: request)
327327
return response.phoneSessionInfo?.sessionInfo
328328
} else {
329329
let request = StartMFASignInRequest(MFAPendingCredential: session.mfaPendingCredential,
@@ -335,7 +335,7 @@ import Foundation
335335
provider: .phone,
336336
action: .mfaSmsSignIn
337337
)
338-
let response = try await AuthBackend.call(with: request)
338+
let response = try await auth.backend.call(with: request)
339339
return response.responseInfo?.sessionInfo
340340
}
341341
} catch {

FirebaseAuth/Sources/Swift/Utilities/AuthRecaptchaVerifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
}
208208
let config = AuthRecaptchaConfig(siteKey: siteKey, enablementStatus: enablementStatus)
209209

210-
if let tenantID = auth.tenantID {
210+
if let tenantID = auth?.tenantID {
211211
tenantConfigs[tenantID] = config
212212
} else {
213213
agentConfig = config

0 commit comments

Comments
 (0)