@maxzima/wa-communicator 1.0.14 → 1.0.15

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.
@@ -151,7 +151,7 @@ export class Communicator {
151
151
  }
152
152
  setStorageValues(data) {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
- const headers = this.getHeaders(data.authToken);
154
+ const headers = this.getHeaders(data.accessToken);
155
155
  const body = JSON.stringify({
156
156
  seo_source: data.origin,
157
157
  });
@@ -120,7 +120,7 @@ declare type TRegistrationRequestData = {
120
120
  origin: TRegistrationRequestBodySource['origin'];
121
121
  };
122
122
  declare type TStorageRequestData = {
123
- authToken: string;
123
+ accessToken: string;
124
124
  origin: string;
125
125
  };
126
126
  export { TRegistrationRequestBodySourceDeviceType, TChallenge, TAuditSource, TRequestProps, TRequestQueryParams, TResponse, TSignInStartRequestBody, TAccountMeta, TAccountBrowserData, TSignInByMobileRequestData, TSignInByMobileResponse, TSignUpStartRequestBody, TSignUpByMobileRequestData, TSetupChallengeRequestData, TSetupChallengeResponse, TVerifyChallengeRequestBody, TVerifyChallengeRequestData, TVerifyChallengeResponse, TEmailUpdateRequestData, TCreateSessionRequestData, TCreateSessionResponse, TGetCurrentUserProfileResponseUser, TGetCurrentUserProfileRequestData, TRegistrationRequestData, TStorageRequestData, };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.14",
2
+ "version": "1.0.15",
3
3
  "name": "@maxzima/wa-communicator",
4
4
  "description": "",
5
5
  "author": "Noname",
@@ -147,7 +147,7 @@ export class Communicator {
147
147
  }
148
148
 
149
149
  public async setStorageValues(data: TStorageRequestData) {
150
- const headers = this.getHeaders(data.authToken);
150
+ const headers = this.getHeaders(data.accessToken);
151
151
  const body = JSON.stringify({
152
152
  seo_source: data.origin,
153
153
  });
@@ -170,7 +170,7 @@ type TRegistrationRequestData = {
170
170
 
171
171
  /* region registration */
172
172
  type TStorageRequestData = {
173
- authToken: string,
173
+ accessToken: string,
174
174
  origin: string,
175
175
  }
176
176
  /* endregion registration */
@@ -86,7 +86,7 @@ Object {
86
86
  "body": "{\\"seo_source\\":\\"_origin_\\"}",
87
87
  "headers": Object {
88
88
  "Accept": "application/json, text/plain, */*",
89
- "Authorization": "Bearer _authToken_",
89
+ "Authorization": "Bearer _accessToken_",
90
90
  "Content-Type": "application/json",
91
91
  },
92
92
  "method": "POST",
@@ -55,7 +55,7 @@ const registrationData: TRegistrationRequestData = {
55
55
  };
56
56
 
57
57
  const setStorageValuesData: TStorageRequestData = {
58
- authToken: communicatorTestData.authToken,
58
+ accessToken: communicatorTestData.accessToken,
59
59
  origin: communicatorTestData.origin,
60
60
  };
61
61