import{r as s}from"./BKxwI4SA.js";const o=s(!1),c=()=>{const e=o,n=t=>{e.value=t,typeof localStorage<"u"&&localStorage.setItem("workpulse-auth",t?"1":"0")};return{isAuthenticated:e,initAuth:()=>{if(typeof window>"u")return;const t=localStorage.getItem("workpulse-auth");e.value=t==="1"},signIn:()=>n(!0),signOut:()=>n(!1)}};export{c as u};
