@memberstack/dom 1.9.11 → 1.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,6 +138,7 @@ var initRequest = function (_a) {
|
|
|
138
138
|
customFields: customFields,
|
|
139
139
|
plans: plans,
|
|
140
140
|
appId: appId,
|
|
141
|
+
publicKey: publicKey,
|
|
141
142
|
origin: window.location.hostname,
|
|
142
143
|
});
|
|
143
144
|
return [2 /*return*/, openSignInWindow("".concat(endpoints_1.endpoints.API, "/auth-provider/signup?").concat(queryParams), "signup")];
|
|
@@ -151,6 +152,7 @@ var initRequest = function (_a) {
|
|
|
151
152
|
queryParams = new URLSearchParams({
|
|
152
153
|
provider: params.provider,
|
|
153
154
|
appId: appId,
|
|
155
|
+
publicKey: publicKey,
|
|
154
156
|
origin: window.location.hostname,
|
|
155
157
|
});
|
|
156
158
|
return [2 /*return*/, openSignInWindow("".concat(endpoints_1.endpoints.API, "/auth-provider/login?").concat(queryParams), "login")];
|
|
@@ -164,6 +166,7 @@ var initRequest = function (_a) {
|
|
|
164
166
|
queryParams = new URLSearchParams({
|
|
165
167
|
provider: params.provider,
|
|
166
168
|
appId: appId,
|
|
169
|
+
publicKey: publicKey,
|
|
167
170
|
member: (0, cookies_1.getMemberCookie)(),
|
|
168
171
|
origin: window.location.hostname,
|
|
169
172
|
});
|
|
@@ -614,15 +617,9 @@ var initRequest = function (_a) {
|
|
|
614
617
|
case 0: return [4 /*yield*/, sendRequest({
|
|
615
618
|
method: requests_2.HttpMethod.POST,
|
|
616
619
|
url: "/auth/signup",
|
|
617
|
-
data: __assign(
|
|
618
|
-
payment: {
|
|
619
|
-
stripe: {
|
|
620
|
-
paymentMethodId: params.payment.stripe.paymentMethodId,
|
|
621
|
-
},
|
|
622
|
-
},
|
|
623
|
-
})), {
|
|
620
|
+
data: __assign({ email: params.email, password: params.password, customFields: params.customFields, metaData: params.metaData, plans: params.plans, captchaToken: params.captchaToken,
|
|
624
621
|
//internal use only
|
|
625
|
-
origin_domain: window.location.origin, options: options }
|
|
622
|
+
origin_domain: window.location.origin, options: options }, (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
|
|
626
623
|
rewardfulData: {
|
|
627
624
|
// @ts-ignore
|
|
628
625
|
referral: window.Rewardful.referral,
|
package/lib/types/params.d.ts
CHANGED