wix-twix
Version:
A simple library for managing server and web Wix clients built on top of Wix SDK.
3 lines (2 loc) • 567 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@wix/sdk"),n=require("../wixClient.js");class s extends n.WixClient{constructor(e){super({modules:e})}getEnvVariables(){const e=this.getEnvVariable("siteId"),t=this.getEnvVariable("accountId"),i=this.getEnvVariable("apiKey");return{siteId:e,accountId:t,apiKey:i}}getAuthStrategy(){const{apiKey:e,accountId:t,siteId:i}=this.getEnvVariables();return r.ApiKeyStrategy({apiKey:e,accountId:t,siteId:i})}}exports.WixServerClient=s;
//# sourceMappingURL=wixServerClient.js.map