From 4a1f881f03e0ee2cb5f869ffcdc0ba811b3c5f39 Mon Sep 17 00:00:00 2001 From: Raul Batista Date: Thu, 11 Jan 2024 19:38:10 +0100 Subject: [PATCH 1/2] [chore] Make Authorization data codable --- .../Interceptors/Authorization/AuthorizationData.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift b/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift index 259fecb0..d4c6c3eb 100644 --- a/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift +++ b/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift @@ -7,7 +7,7 @@ import Foundation -public struct AuthorizationData { +public struct AuthorizationData: Codable { public let accessToken: String public let refreshToken: String public let expiresIn: Date? From 01fbb2aa41259fa0ba2983cae0bac40ed0fcd6f5 Mon Sep 17 00:00:00 2001 From: Raul Batista Date: Fri, 12 Jan 2024 13:00:09 +0100 Subject: [PATCH 2/2] [chore] Add conformance to sendable as well --- .../Interceptors/Authorization/AuthorizationData.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift b/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift index d4c6c3eb..bf794614 100644 --- a/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift +++ b/Sources/Networking/Modifiers/Interceptors/Authorization/AuthorizationData.swift @@ -7,7 +7,7 @@ import Foundation -public struct AuthorizationData: Codable { +public struct AuthorizationData: Codable, Sendable { public let accessToken: String public let refreshToken: String public let expiresIn: Date?