@maxzima/wa-communicator 1.0.8 → 1.0.9
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.
|
|
117
|
+
headers: Object.assign({ 'Authorization': `Bearer ${data.accessToken}` }, 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
|
-
|
|
110
|
+
accessToken: string;
|
|
111
111
|
};
|
|
112
112
|
declare type TRegistrationRequestData = {
|
|
113
113
|
accessToken: string;
|
package/package.json
CHANGED
|
@@ -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.
|
|
126
|
+
'Authorization': `Bearer ${data.accessToken}`,
|
|
127
127
|
...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
|
|
128
128
|
},
|
|
129
129
|
});
|