import{m as i}from"./chunk-RIXYHOD2.js";import{ea as o,ja as r}from"./chunk-7RF4FE4V.js";var s=(()=>{class t{constructor(e){this.router=e,this.tokenKey="authToken"}setToken(e){localStorage.setItem(this.tokenKey,e)}getToken(){return localStorage.getItem(this.tokenKey)}clearToken(){localStorage.removeItem(this.tokenKey)}logout(){localStorage.removeItem(this.tokenKey)}static{this.\u0275fac=function(n){return new(n||t)(r(i))}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{s as a};
