From 1b87c62847ef78def755e8d96fc168a8107c573e Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 10 Nov 2026 09:55:36 +0100 Subject: [PATCH] chore: keep the API client within its size and the native API minimum module-private --- client/src/api/client.ts | 3 --- client/src/native/serverAddress.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/api/client.ts b/client/src/api/client.ts index bbc44e623..91aac58fa 100644 --- a/client/src/api/client.ts +++ b/client/src/api/client.ts @@ -145,9 +145,6 @@ apiClient.interceptors.request.use( ) export function isAuthPublicPath(pathname: string): boolean { - // /native-handoff signs the user in itself (straight to SSO when the app asked - // for it). Sent to /login by the first 401 instead, the browser showed TREK's - // own sign-in page and an SSO sign-in from the app took an extra round. const publicPaths = ['/login', '/register', '/forgot-password', '/reset-password', '/native-handoff'] const publicPrefixes = ['/shared/', '/public/'] return publicPaths.includes(pathname) || publicPrefixes.some((p) => pathname.startsWith(p)) diff --git a/client/src/native/serverAddress.ts b/client/src/native/serverAddress.ts index ed5d8c144..a3ad65e46 100644 --- a/client/src/native/serverAddress.ts +++ b/client/src/native/serverAddress.ts @@ -48,7 +48,7 @@ const FEATURES_PATH = '/api/health/features'; * goes with SERVER_CHECK in TrekServerStore (iOS and Android), so a server the * app remembers from before is checked against the new minimum once. */ -export const MIN_NATIVE_API = 2; +const MIN_NATIVE_API = 2; function normalize(raw: string): string | null { let parsed: URL;