Mark Credentials types Sendable.

This commit is contained in:
Brent Simmons 2024-04-05 21:28:54 -07:00
parent 0f80c932a1
commit 1ad010d4f8
1 changed files with 3 additions and 3 deletions

View File

@ -8,12 +8,12 @@
import Foundation
public enum CredentialsError: Error {
public enum CredentialsError: Error, Sendable {
case incompleteCredentials
case unhandledError(status: OSStatus)
}
public enum CredentialsType: String {
public enum CredentialsType: String, Sendable {
case basic = "password"
case newsBlurBasic = "newsBlurBasic"
case newsBlurSessionId = "newsBlurSessionId"
@ -24,7 +24,7 @@ public enum CredentialsType: String {
case oauthRefreshToken = "oauthRefreshToken"
}
public struct Credentials: Equatable {
public struct Credentials: Equatable, Sendable {
public let type: CredentialsType
public let username: String
public let secret: String