chore: keep the API client within its size and the native API minimum module-private

This commit is contained in:
Maurice
2026-11-10 09:55:36 +01:00
parent 98eae61b90
commit 1b87c62847
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -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))