@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
17 lines • 733 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessTokenAPI = void 0;
const tslib_1 = require("tslib");
const axiosClient_1 = require("../axiosClient");
exports.AccessTokenAPI = {
makeBaseURI() {
return '/api/accounts_mgmt/v1/access_token';
},
fetchPullSecret() {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const response = yield (axiosClient_1.ocmClient === null || axiosClient_1.ocmClient === void 0 ? void 0 : axiosClient_1.ocmClient.post(exports.AccessTokenAPI.makeBaseURI()));
return response === null || response === void 0 ? void 0 : response.data;
});
},
};
//# sourceMappingURL=access-token-api.js.map