wix-twix
Version:
A simple library for managing server and web Wix clients built on top of Wix SDK.
22 lines (21 loc) • 463 B
JavaScript
import { OAuthStrategy as r } from "@wix/sdk";
import { WixClient as i } from "../wixClient.js";
class a extends i {
constructor(t) {
super({ modules: t });
}
getEnvVariables() {
return { clientId: this.getEnvVariable("clientId") };
}
getAuthStrategy(t) {
const { clientId: e } = this.getEnvVariables();
return r({
clientId: e,
tokens: t
});
}
}
export {
a as WixWebClient
};
//# sourceMappingURL=wixWebClient.js.map