@ikas/storefront 1.0.14-alpha.1 → 1.0.14-alpha.2
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.
- package/build/index.es.js +2 -3
- package/build/index.js +2 -3
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -73647,15 +73647,14 @@ var IkasCustomerStore = /** @class */ (function () {
|
|
|
73647
73647
|
*/
|
|
73648
73648
|
IkasCustomerStore.prototype.socialLogin = function (provider) {
|
|
73649
73649
|
return __awaiter(this, void 0, void 0, function () {
|
|
73650
|
-
var
|
|
73650
|
+
var redirect, url, result, resultJson;
|
|
73651
73651
|
return __generator(this, function (_a) {
|
|
73652
73652
|
switch (_a.label) {
|
|
73653
73653
|
case 0:
|
|
73654
73654
|
if (typeof window === "undefined")
|
|
73655
73655
|
return [2 /*return*/];
|
|
73656
|
-
env = process.env.NODE_ENV === "production" ? "com" : "dev";
|
|
73657
73656
|
redirect = new URLSearchParams(window.location.search).get("redirect") || "";
|
|
73658
|
-
url =
|
|
73657
|
+
url = process.env.NEXT_PUBLIC_BASE_URL + "/api/sf/ms/" + provider + "/login/authenticate?redirect=" + redirect;
|
|
73659
73658
|
return [4 /*yield*/, fetch(url, {
|
|
73660
73659
|
headers: {
|
|
73661
73660
|
"x-api-key": IkasStorefrontConfig.config.apiKey || "",
|
package/build/index.js
CHANGED
|
@@ -73624,15 +73624,14 @@ var IkasCustomerStore = /** @class */ (function () {
|
|
|
73624
73624
|
*/
|
|
73625
73625
|
IkasCustomerStore.prototype.socialLogin = function (provider) {
|
|
73626
73626
|
return __awaiter(this, void 0, void 0, function () {
|
|
73627
|
-
var
|
|
73627
|
+
var redirect, url, result, resultJson;
|
|
73628
73628
|
return __generator(this, function (_a) {
|
|
73629
73629
|
switch (_a.label) {
|
|
73630
73630
|
case 0:
|
|
73631
73631
|
if (typeof window === "undefined")
|
|
73632
73632
|
return [2 /*return*/];
|
|
73633
|
-
env = process.env.NODE_ENV === "production" ? "com" : "dev";
|
|
73634
73633
|
redirect = new URLSearchParams(window.location.search).get("redirect") || "";
|
|
73635
|
-
url =
|
|
73634
|
+
url = process.env.NEXT_PUBLIC_BASE_URL + "/api/sf/ms/" + provider + "/login/authenticate?redirect=" + redirect;
|
|
73636
73635
|
return [4 /*yield*/, fetch(url, {
|
|
73637
73636
|
headers: {
|
|
73638
73637
|
"x-api-key": IkasStorefrontConfig.config.apiKey || "",
|