@maxzima/wa-communicator 1.0.4 → 1.0.5
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/README.md
CHANGED
|
@@ -129,7 +129,7 @@ export class Communicator {
|
|
|
129
129
|
return yield this.send({
|
|
130
130
|
method: 'POST',
|
|
131
131
|
url: `${this.props.clientFAPIBaseUrl}${"clients/registration"}`,
|
|
132
|
-
headers: Object.assign({ 'Authorization': `Bearer ${data.
|
|
132
|
+
headers: Object.assign({ 'Authorization': `Bearer ${data.accessToken}` }, CommunicatorDefaultRequestData.FETCH_HEADERS_INIT),
|
|
133
133
|
body,
|
|
134
134
|
});
|
|
135
135
|
});
|
|
@@ -100,7 +100,7 @@ declare type TRegistrationRequestBody = {
|
|
|
100
100
|
source: TRegistrationRequestBodySource;
|
|
101
101
|
};
|
|
102
102
|
declare type TRegistrationRequestData = {
|
|
103
|
-
|
|
103
|
+
accessToken: string;
|
|
104
104
|
name: TRegistrationRequestBody['name'];
|
|
105
105
|
deviceType: TRegistrationRequestBodySource['device_type'];
|
|
106
106
|
hash: TRegistrationRequestBodySource['hash'];
|
package/package.json
CHANGED
|
@@ -135,7 +135,7 @@ export class Communicator {
|
|
|
135
135
|
method: 'POST',
|
|
136
136
|
url: `${this.props.clientFAPIBaseUrl}${CommunicatorFAPIEndpointEnum.REGISTRATION}`,
|
|
137
137
|
headers: {
|
|
138
|
-
'Authorization': `Bearer ${data.
|
|
138
|
+
'Authorization': `Bearer ${data.accessToken}`,
|
|
139
139
|
...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
|
|
140
140
|
},
|
|
141
141
|
body,
|
|
@@ -145,7 +145,7 @@ type TRegistrationRequestBody = {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
type TRegistrationRequestData = {
|
|
148
|
-
|
|
148
|
+
accessToken: string,
|
|
149
149
|
name: TRegistrationRequestBody['name'],
|
|
150
150
|
deviceType: TRegistrationRequestBodySource['device_type']
|
|
151
151
|
hash: TRegistrationRequestBodySource['hash'],
|