UNPKG

wix-twix

Version:

A simple library for managing server and web Wix clients built on top of Wix SDK.

3 lines (2 loc) 438 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@wix/sdk"),n=require("../wixClient.js");class r extends n.WixClient{constructor(e){super({modules:e})}getEnvVariables(){return{clientId:this.getEnvVariable("clientId")}}getAuthStrategy(e){const{clientId:t}=this.getEnvVariables();return i.OAuthStrategy({clientId:t,tokens:e})}}exports.WixWebClient=r; //# sourceMappingURL=wixWebClient.js.map