Conformed the AuthMethod and AuthTransport enumerations in the library target to the Sendable protocol.

This commit is contained in:
2025-10-10 15:24:26 +02:00
parent ba3929b5df
commit 9982deab7b
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@
/// Personal access token | 🐰 High tier | Yes | Yes, for token holder only 👩
///
/// Please refer to the [Discogs documentation](https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow) for further details.
public enum AuthMethod {
public enum AuthMethod: Equatable, Sendable {
/// A consumer key and secret that allows access to endpoints that requires authentication.
case consumer(key: String, secret: String)
/// No authentication method defined.
@@ -13,7 +13,7 @@
// ===----------------------------------------------------------------------===
/// A representation of the available transport options to send credentials in authenticated requests.
public enum AuthTransport {
public enum AuthTransport: Sendable {
/// Authentication credential are sent in a request as an `Authentication` header.
///
/// This means that the header will be added to any existing header in a request, like this: