From ed8ffefd335388767a4f94e65a850b1f6a005ff4 Mon Sep 17 00:00:00 2001 From: Michal Janecek Date: Tue, 12 May 2026 10:40:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20inverted=20sendWithoutRequ?= =?UTF-8?q?est=20predicate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The predicate was sending the bearer token to login/registration and skipping preemptive sending everywhere else. Flipped to .none(...) so the token is attached to authenticated endpoints, not to the auth ones. --- .../commonMain/kotlin/kmp/shared/base/data/remote/HttpClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/base/src/commonMain/kotlin/kmp/shared/base/data/remote/HttpClient.kt b/shared/base/src/commonMain/kotlin/kmp/shared/base/data/remote/HttpClient.kt index 262c85ce..23ac81ec 100644 --- a/shared/base/src/commonMain/kotlin/kmp/shared/base/data/remote/HttpClient.kt +++ b/shared/base/src/commonMain/kotlin/kmp/shared/base/data/remote/HttpClient.kt @@ -65,7 +65,7 @@ internal object HttpClient { } sendWithoutRequest { request -> - unauthorizedEndpoints.any(request.url.encodedPath::equals) + unauthorizedEndpoints.none(request.url.encodedPath::equals) } } }