(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38036,t=>{"use strict";var e=t.i(54858);let o="auth_token";function n(){return localStorage.getItem(o)}function i(t){localStorage.setItem(o,t)}function u(){localStorage.removeItem(o)}function c(){return null!==n()}async function l(t){let o=await (0,e.apiRequest)("/auth/login",{method:"POST",body:JSON.stringify(t)});return i(o.token),o}function r(){u()}t.s(["getToken",()=>n,"isAuthenticated",()=>c,"login",()=>l,"logout",()=>r,"removeToken",()=>u,"setToken",()=>i])}]);