From c369f77b959c44feea357b5e9dc86e3a2d4e940b Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:46:12 +0100 Subject: [PATCH 1/3] feat: add invalidTokenUrl case to JWT.Error Co-Authored-By: Claude Sonnet 4.6 --- Sources/Engine/JWT/JWT.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Engine/JWT/JWT.swift b/Sources/Engine/JWT/JWT.swift index 24a94aa..ba42b74 100644 --- a/Sources/Engine/JWT/JWT.swift +++ b/Sources/Engine/JWT/JWT.swift @@ -160,5 +160,7 @@ public struct JWT { case keyContainsNoData(String) case googleServiceAccountJsonNotFound(path: String) case invalidResonse(response: URLResponse) + case invalidTokenUrl(String) } } + From 6013c14d20184511eebf00909f24e5c0ce85947d Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:47:13 +0100 Subject: [PATCH 2/3] docs: add doc comment to JWT.Error.invalidTokenUrl Co-Authored-By: Claude Sonnet 4.6 --- Sources/Engine/JWT/JWT.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Engine/JWT/JWT.swift b/Sources/Engine/JWT/JWT.swift index ba42b74..7f76a0b 100644 --- a/Sources/Engine/JWT/JWT.swift +++ b/Sources/Engine/JWT/JWT.swift @@ -160,6 +160,8 @@ public struct JWT { case keyContainsNoData(String) case googleServiceAccountJsonNotFound(path: String) case invalidResonse(response: URLResponse) + /// The token URL string is malformed or cannot be converted to a valid `URL`. + /// - Parameter url: The invalid URL string. case invalidTokenUrl(String) } } From 5d2528b580bc26b56c978e7b2a38038f09723465 Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:48:40 +0100 Subject: [PATCH 3/3] refactor: rename invalidTokenUrl to malformedUrl in JWT.Error Makes the error case generic and not specific to token URLs. Co-Authored-By: Claude Sonnet 4.6 --- Sources/Engine/JWT/JWT.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Engine/JWT/JWT.swift b/Sources/Engine/JWT/JWT.swift index 7f76a0b..24a5b79 100644 --- a/Sources/Engine/JWT/JWT.swift +++ b/Sources/Engine/JWT/JWT.swift @@ -160,9 +160,9 @@ public struct JWT { case keyContainsNoData(String) case googleServiceAccountJsonNotFound(path: String) case invalidResonse(response: URLResponse) - /// The token URL string is malformed or cannot be converted to a valid `URL`. - /// - Parameter url: The invalid URL string. - case invalidTokenUrl(String) + /// The URL string is malformed or cannot be converted to a valid `URL`. + /// - Parameter url: The malformed URL string. + case malformedUrl(String) } }