@bytexbyte/ike-app-api 1.0.61 → 1.0.62
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/lib/Auth/index.js +1 -4
- package/package.json +2 -2
package/lib/Auth/index.js
CHANGED
|
@@ -80,6 +80,7 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
80
80
|
secretKey: secretKey !== null && secretKey !== void 0 ? secretKey : config_1.localSecretKey,
|
|
81
81
|
secret: secret !== null && secret !== void 0 ? secret : '',
|
|
82
82
|
moduleName: 'auth',
|
|
83
|
+
credentials: 'include',
|
|
83
84
|
onSuccess: onSuccess,
|
|
84
85
|
onError: onError,
|
|
85
86
|
}) || this;
|
|
@@ -94,7 +95,6 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
94
95
|
headers: {
|
|
95
96
|
'Content-Type': 'application/json',
|
|
96
97
|
},
|
|
97
|
-
credentials: 'include',
|
|
98
98
|
}, 'csrf')];
|
|
99
99
|
case 1:
|
|
100
100
|
response = _a.sent();
|
|
@@ -248,7 +248,6 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
248
248
|
headers: {
|
|
249
249
|
'Content-Type': 'application/json',
|
|
250
250
|
},
|
|
251
|
-
credentials: 'include',
|
|
252
251
|
body: JSON.stringify(__assign(__assign({ callbackUrl: this.host, json: true }, form), { csrfToken: csrfToken })),
|
|
253
252
|
}, "callback/".concat(provider))];
|
|
254
253
|
case 2:
|
|
@@ -271,7 +270,6 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
271
270
|
headers: {
|
|
272
271
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
273
272
|
},
|
|
274
|
-
credentials: 'include',
|
|
275
273
|
body: toFormUrlencodedString({ callbackUrl: this.host, json: true, csrfToken: csrfToken }),
|
|
276
274
|
}, 'signout')];
|
|
277
275
|
case 2:
|
|
@@ -288,7 +286,6 @@ var IKEAppAuthApi = /** @class */ (function (_super) {
|
|
|
288
286
|
switch (_a.label) {
|
|
289
287
|
case 0: return [4 /*yield*/, this.bxbFetch({
|
|
290
288
|
method: 'GET',
|
|
291
|
-
credentials: 'include',
|
|
292
289
|
}, 'session')];
|
|
293
290
|
case 1:
|
|
294
291
|
response = _a.sent();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytexbyte/ike-app-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "app api",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@bytexbyte/berify-api": "^2.0.8",
|
|
40
|
-
"@bytexbyte/bxb-api": "^1.0.
|
|
40
|
+
"@bytexbyte/bxb-api": "^1.0.5",
|
|
41
41
|
"ansi-styles": "^3.2.1",
|
|
42
42
|
"argparse": "^1.0.10",
|
|
43
43
|
"balanced-match": "^1.0.2",
|