@stripe/ui-extension-sdk
Version:
The suite of functionality available to UI extensions in Stripe apps
13 lines (12 loc) • 449 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchAppEmbeddedKey = void 0;
const _endpoint_1 = require("../_endpoint");
const fetchAppEmbeddedKey = async () => {
const apiKey = await (0, _endpoint_1.getHostEndpoint)().call.fetchAppEmbeddedKey();
if (!apiKey) {
throw new Error('Unable to fetch app embedded key');
}
return apiKey;
};
exports.fetchAppEmbeddedKey = fetchAppEmbeddedKey;