import { acquireAccessToken } from "./authActions.mjs";
import { useState } from "react";
//#region src/utilities/auth/useAccessToken.js
const useAccessToken = () => {
	const [accessToken, setAccessToken] = useState(null);
	acquireAccessToken().then((token) => {
		if (accessToken !== token) setAccessToken(token);
	});
	return accessToken;
};
//#endregion
export { useAccessToken };

//# sourceMappingURL=useAccessToken.mjs.map