@maxzima/wa-communicator 1.0.7 → 1.0.8

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.
@@ -114,7 +114,7 @@ export class Communicator {
114
114
  return yield this.send({
115
115
  method: 'GET',
116
116
  url: `${this.props.clientFAPIBaseUrl}${"user"}`,
117
- headers: Object.assign({ 'Authorization': `Bearer ${data.accessToken}` }, CommunicatorDefaultRequestData.FETCH_HEADERS_INIT),
117
+ headers: Object.assign({ 'Authorization': `Bearer ${data.authToken}` }, CommunicatorDefaultRequestData.FETCH_HEADERS_INIT),
118
118
  });
119
119
  });
120
120
  }
@@ -107,7 +107,7 @@ declare type TRegistrationRequestBody = {
107
107
  source: TRegistrationRequestBodySource;
108
108
  };
109
109
  declare type TGetCurrentUserProfileRequestData = {
110
- accessToken: string;
110
+ authToken: string;
111
111
  };
112
112
  declare type TRegistrationRequestData = {
113
113
  accessToken: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.7",
2
+ "version": "1.0.8",
3
3
  "name": "@maxzima/wa-communicator",
4
4
  "description": "",
5
5
  "author": "Noname",
@@ -123,7 +123,7 @@ export class Communicator {
123
123
  method: 'GET',
124
124
  url: `${this.props.clientFAPIBaseUrl}${CommunicatorFAPIEndpointEnum.USER}`,
125
125
  headers: {
126
- 'Authorization': `Bearer ${data.accessToken}`,
126
+ 'Authorization': `Bearer ${data.authToken}`,
127
127
  ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
128
128
  },
129
129
  });
@@ -153,7 +153,7 @@ type TRegistrationRequestBody = {
153
153
  }
154
154
 
155
155
  type TGetCurrentUserProfileRequestData = {
156
- accessToken: string,
156
+ authToken: string,
157
157
  }
158
158
 
159
159
  type TRegistrationRequestData = {