wix-twix
Version:
A simple library for managing server and web Wix clients built on top of Wix SDK.
20 lines (19 loc) • 599 B
JavaScript
import { ApiKeyStrategy as r } from "@wix/sdk";
import { WixClient as a } from "../wixClient.js";
class c extends a {
constructor(t) {
super({ modules: t });
}
getEnvVariables() {
const t = this.getEnvVariable("siteId"), e = this.getEnvVariable("accountId"), i = this.getEnvVariable("apiKey");
return { siteId: t, accountId: e, apiKey: i };
}
getAuthStrategy() {
const { apiKey: t, accountId: e, siteId: i } = this.getEnvVariables();
return r({ apiKey: t, accountId: e, siteId: i });
}
}
export {
c as WixServerClient
};
//# sourceMappingURL=wixServerClient.js.map