diff --git a/Sources/EventSource/SessionDelegate.swift b/Sources/EventSource/SessionDelegate.swift index be55a5a..72de74a 100644 --- a/Sources/EventSource/SessionDelegate.swift +++ b/Sources/EventSource/SessionDelegate.swift @@ -46,4 +46,12 @@ final class SessionDelegate: NSObject, URLSessionDataDelegate { ) { internalStream.continuation.yield(.didReceiveData(data)) } + + func urlSession( + _ session: URLSession, + didReceive challenge: URLAuthenticationChallenge, + completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void + ) { + completionHandler(.performDefaultHandling, nil) + } }