/** biome-ignore-all lint/suspicious/noExplicitAny: { // Apply protected route middleware for all routes // The middleware will determine which routes are public vs protected const context = await protectedRouteMiddleware({ location }); // Only set auth store if we have user data (for protected routes) if (context?.user) { authStore.user = context?.user as any; authStore.session = context?.session as any; } }, }); function RootComponent() { return ; }