@@ -243,7 +243,7 @@ import Foundation
243
243
provider: . phone,
244
244
action: . sendVerificationCode
245
245
)
246
- let response = try await AuthBackend . call ( with: request)
246
+ let response = try await auth . backend . call ( with: request)
247
247
return response. verificationID
248
248
} catch {
249
249
return try await handleVerifyErrorWithRetry ( error: error,
@@ -270,7 +270,7 @@ import Foundation
270
270
requestConfiguration: auth
271
271
. requestConfiguration)
272
272
do {
273
- let response = try await AuthBackend . call ( with: request)
273
+ let response = try await auth . backend . call ( with: request)
274
274
return response. verificationID
275
275
} catch {
276
276
return try await handleVerifyErrorWithRetry (
@@ -300,7 +300,7 @@ import Foundation
300
300
codeIdentity: CodeIdentity . empty,
301
301
requestConfiguration: auth. requestConfiguration
302
302
)
303
- let response = try await AuthBackend . call ( with: request)
303
+ let response = try await auth . backend . call ( with: request)
304
304
return response. verificationID
305
305
}
306
306
guard let session else {
@@ -323,7 +323,7 @@ import Foundation
323
323
provider: . phone,
324
324
action: . mfaSmsEnrollment
325
325
)
326
- let response = try await AuthBackend . call ( with: request)
326
+ let response = try await auth . backend . call ( with: request)
327
327
return response. phoneSessionInfo? . sessionInfo
328
328
} else {
329
329
let request = StartMFASignInRequest ( MFAPendingCredential: session. mfaPendingCredential,
@@ -335,7 +335,7 @@ import Foundation
335
335
provider: . phone,
336
336
action: . mfaSmsSignIn
337
337
)
338
- let response = try await AuthBackend . call ( with: request)
338
+ let response = try await auth . backend . call ( with: request)
339
339
return response. responseInfo? . sessionInfo
340
340
}
341
341
} catch {
0 commit comments