import { getClientIdDynamically } from '@broadleaf/commerce-shared-react';
const applicationToken = 'my-application-token';
(async function initialize() {
try {
const { clientId } = await getClientIdDynamically(applicationToken);
console.log('Client ID', clientId);
} catch (e) {
console.error(
"Unable to retrieve authorized client details dynamically. Alternatively, you can provide a client ID explicitly and use 'static' client discovery.",
e
);
}
})();