Skip to content

Commit 9db9cb5

Browse files
committed
fix merge issue
1 parent cc6cc0f commit 9db9cb5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

FirebaseAuth/Tests/Unit/Fakes/FakeBackendRPCIssuer.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ class FakeBackendRPCIssuer: AuthBackendRPCIssuer {
7777
var secureTokenErrorString: String?
7878
var recaptchaSiteKey = "projects/fakeProjectId/keys/mockSiteKey"
7979
var rceMode: String = "OFF"
80+
81+
override func asyncCallToURL<T>(with request: T, body: Data?,
82+
contentType: String) async -> (Data?, Error?)
83+
where T: FirebaseAuth.AuthRPCRequest {
84+
return await withCheckedContinuation { continuation in
85+
self.asyncCallToURL(with: request, body: body, contentType: contentType) { data, error in
86+
continuation.resume(returning: (data, error))
87+
}
88+
}
89+
}
8090

8191
func asyncCallToURL<T: AuthRPCRequest>(with request: T,
8292
body: Data?,

0 commit comments

Comments
 (0)