From edbd593284040a6431f058186307ccbf0542e21c Mon Sep 17 00:00:00 2001 From: dankinsoid <30962149+dankinsoid@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:10:45 +0400 Subject: [PATCH] 1.29.0 --- .../Modifiers/TokenRefresher/TokenRefresher.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift b/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift index dd098e0..18a5f47 100644 --- a/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift +++ b/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift @@ -103,7 +103,7 @@ public struct TokenRefresherMiddleware: HTTPClientMiddleware { try await requestToken(configs) } } else { - throw Errors.custom("Token not found.") + throw TokenNotFound() } if @@ -146,3 +146,8 @@ public struct TokenRefresherMiddleware: HTTPClientMiddleware { } } } + +public struct TokenNotFound: Error { + + public init() {} +}