Skip to content

Commit

Permalink
resolve auth.backend.call conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoshouzi-gh committed Nov 19, 2024
1 parent af1e70b commit 73a7ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ import Foundation
provider: .phone,
action: .sendVerificationCode
)
let response = try await AuthBackend.call(with: request)
let response = try await auth.backend.call(with: request)
return response.verificationID
} catch {
return try await handleVerifyErrorWithRetry(error: error,
Expand All @@ -270,7 +270,7 @@ import Foundation
requestConfiguration: auth
.requestConfiguration)
do {
let response = try await AuthBackend.call(with: request)
let response = try await auth.backend.call(with: request)
return response.verificationID
} catch {
return try await handleVerifyErrorWithRetry(
Expand Down Expand Up @@ -300,7 +300,7 @@ import Foundation
codeIdentity: CodeIdentity.empty,
requestConfiguration: auth.requestConfiguration
)
let response = try await AuthBackend.call(with: request)
let response = try await auth.backend.call(with: request)
return response.verificationID
}
guard let session else {
Expand All @@ -323,7 +323,7 @@ import Foundation
provider: .phone,
action: .mfaSmsEnrollment
)
let response = try await AuthBackend.call(with: request)
let response = try await auth.backend.call(with: request)
return response.phoneSessionInfo?.sessionInfo
} else {
let request = StartMFASignInRequest(MFAPendingCredential: session.mfaPendingCredential,
Expand All @@ -335,7 +335,7 @@ import Foundation
provider: .phone,
action: .mfaSmsSignIn
)
let response = try await AuthBackend.call(with: request)
let response = try await auth.backend.call(with: request)
return response.responseInfo?.sessionInfo
}
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
}
let config = AuthRecaptchaConfig(siteKey: siteKey, enablementStatus: enablementStatus)

if let tenantID = auth.tenantID {
if let tenantID = auth?.tenantID {
tenantConfigs[tenantID] = config
} else {
agentConfig = config
Expand Down

0 comments on commit 73a7ede

Please sign in to comment.