chayns-api 1.0.63 → 1.0.65

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.
@@ -328,7 +328,7 @@ class AppWrapper {
328
328
  (0, _appCall.default)(callObj);
329
329
  },
330
330
  login: async (value, callback, closeCallback) => {
331
- const res = await this.appCall({}, callback);
331
+ const res = await this.appCall(54, value);
332
332
  return {
333
333
  loginState: res === null || res === void 0 ? void 0 : res.loginState
334
334
  };
@@ -573,7 +573,11 @@ class AppWrapper {
573
573
  window[callbackName] = ({
574
574
  retVal: value
575
575
  }) => {
576
- this.mapOldApiToNew(value);
576
+ if ('tobitAccessToken' in value) {
577
+ this.accessToken = value.tobitAccessToken;
578
+ } else {
579
+ this.mapOldApiToNew(value);
580
+ }
577
581
  };
578
582
  this.appCall(66, {
579
583
  enabled: true,
@@ -284,7 +284,7 @@ export class AppWrapper {
284
284
  invokeAppCall(callObj);
285
285
  },
286
286
  login: async (value, callback, closeCallback) => {
287
- const res = await this.appCall({}, callback);
287
+ const res = await this.appCall(54, value);
288
288
  return {
289
289
  loginState: res === null || res === void 0 ? void 0 : res.loginState
290
290
  };
@@ -572,7 +572,11 @@ export class AppWrapper {
572
572
  let {
573
573
  retVal: value
574
574
  } = _ref2;
575
- this.mapOldApiToNew(value);
575
+ if ('tobitAccessToken' in value) {
576
+ this.accessToken = value.tobitAccessToken;
577
+ } else {
578
+ this.mapOldApiToNew(value);
579
+ }
576
580
  };
577
581
  this.appCall(66, {
578
582
  enabled: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",