import { useState } from 'react';
import { acquireAccessToken } from './authActions';
export const useAccessToken = () => {
    const [accessToken, setAccessToken] = useState(null);
    acquireAccessToken().then((token) => {
        if (accessToken !== token) {
            setAccessToken(token);
        }
    });
    return accessToken;
};
//# sourceMappingURL=useAccessToken.js.map