66//
77
88
9- public enum AuthenticationState : Equatable {
9+ public enum AuthenticationState : Equatable , Sendable {
1010 case unauthenticated
1111 case waitingForSecondFactor( TwoFactorOption , AuthOptionsResponse , AppleSessionData )
1212 case authenticated( AppleSession )
1313 case notAppleDeveloper
1414}
1515
16- public enum TwoFactorOption : Equatable {
16+ public enum TwoFactorOption : Equatable , Sendable {
1717 case smsSent( AuthOptionsResponse . TrustedPhoneNumber )
1818 case codeSent
1919 case smsPendingChoice
2020 case securityKey
2121}
2222
2323@preconcurrency
24- public struct AuthOptionsResponse : Equatable , Decodable {
24+ public struct AuthOptionsResponse : Equatable , Decodable , Sendable {
2525 public let trustedPhoneNumbers : [ TrustedPhoneNumber ] ?
2626 public let trustedDevices : [ TrustedDevice ] ?
2727 public let securityCode : SecurityCodeInfo ?
@@ -69,7 +69,7 @@ public struct AuthOptionsResponse: Equatable, Decodable {
6969 trustedPhoneNumbers? . count == 1 && canFallBackToSMS
7070 }
7171
72- public struct TrustedPhoneNumber : Equatable , Decodable , Identifiable {
72+ public struct TrustedPhoneNumber : Equatable , Decodable , Identifiable , Sendable {
7373 public let id : Int
7474 public let numberWithDialCode : String
7575
@@ -79,7 +79,7 @@ public struct AuthOptionsResponse: Equatable, Decodable {
7979 }
8080 }
8181
82- public struct TrustedDevice : Equatable , Decodable {
82+ public struct TrustedDevice : Equatable , Decodable , Sendable {
8383 public let id : String
8484 public let name : String
8585 public let modelName : String
@@ -91,7 +91,7 @@ public struct AuthOptionsResponse: Equatable, Decodable {
9191 }
9292 }
9393
94- public struct SecurityCodeInfo : Equatable , Decodable {
94+ public struct SecurityCodeInfo : Equatable , Decodable , Sendable {
9595 public let length : Int
9696 public let tooManyCodesSent : Bool
9797 public let tooManyCodesValidated : Bool
@@ -118,7 +118,7 @@ public struct AuthOptionsResponse: Equatable, Decodable {
118118 }
119119}
120120
121- public struct AppleSessionData : Equatable , Identifiable {
121+ public struct AppleSessionData : Equatable , Identifiable , Sendable {
122122 public let serviceKey : String
123123 public let sessionID : String
124124 public let scnt : String
@@ -132,12 +132,12 @@ public struct AppleSessionData: Equatable, Identifiable {
132132 }
133133}
134134
135- public struct ServiceError : Decodable , Equatable {
135+ public struct ServiceError : Decodable , Equatable , Sendable {
136136 let code : String
137137 let message : String
138138}
139139
140- public struct FSAChallenge : Equatable , Decodable {
140+ public struct FSAChallenge : Equatable , Decodable , Sendable {
141141 public let challenge : String
142142 public let keyHandles : [ String ]
143143 public let allowedCredentials : String
0 commit comments