{"ast":null,"code":"import { inject } from '@angular/core';\nimport { Router } from '@angular/router';\nexport const authGuard = (route, state) => {\n  const router = inject(Router);\n  const token = localStorage.getItem('kinetix_token');\n  if (token) {\n    return true;\n  }\n  // Redirect to login if not authenticated\n  router.navigate(['/login']);\n  return false;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}