import{c as n}from"./client-FQNJN-9O.js";import{r,j as c}from"./vendor-DnvTq60j.js";function i(){return r.useEffect(()=>{const a=window.location.hash.substring(1),e=new URLSearchParams(a),s=e.get("access_token"),o=e.get("sam_access_token"),t=e.get("refresh_token");o&&localStorage.setItem("sam_access_token",o),s?(localStorage.setItem("access_token",s),t&&localStorage.setItem("refresh_token",t),window.location.href="/"):console.error("AuthCallback: No access token found in URL hash.")},[]),c.jsx("div",{children:"Loading..."})}n.createRoot(document.getElementById("root")).render(c.jsx(i,{}));
