Skip to content

Commit

Permalink
address failingUserAuthenticator and defaultResponseProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jul 3, 2024
1 parent ab9c6b4 commit 3038e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/OAuthenticator/Authenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class Authenticator {
/// A `UserAuthenticator` that always fails. Useful as a placeholder
/// for testing and for doing manual authentication with an external
/// instance not available at configuration-creation time.
public static nonisolated let failingUserAuthenticator: UserAuthenticator = { _, _ in
public static func failingUserAuthenticator(_ url: URL, _ user: String) throws -> URL {
throw AuthenticatorError.failingAuthenticatorUsed
}

Expand Down Expand Up @@ -92,6 +92,7 @@ public final class Authenticator {
}

/// A default `URLSession`-backed `URLResponseProvider`.
@MainActor
public static let defaultResponseProvider: URLResponseProvider = {
let session = URLSession(configuration: .default)

Expand Down

0 comments on commit 3038e28

Please sign in to comment.