@maxzima/wa-communicator 1.0.29 → 1.0.30
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,9 +114,7 @@ export class Communicator {
|
|
|
114
114
|
mobile: data.phoneNumber,
|
|
115
115
|
};
|
|
116
116
|
const url = `${this.props.clientAuthSSEBaseUrl}${"sse/app-auth"}`;
|
|
117
|
-
this.sseAuth = new EventSource(`${url}?${this.processingQueryParams(params)}
|
|
118
|
-
withCredentials: true,
|
|
119
|
-
});
|
|
117
|
+
this.sseAuth = new EventSource(`${url}?${this.processingQueryParams(params)}`);
|
|
120
118
|
if (this.sseAuth) {
|
|
121
119
|
this.sseAuth.addEventListener('open', (event) => {
|
|
122
120
|
if (this.props.env !== 'prod') {
|
package/package.json
CHANGED
|
@@ -117,9 +117,7 @@ export class Communicator {
|
|
|
117
117
|
mobile: data.phoneNumber,
|
|
118
118
|
}
|
|
119
119
|
const url = `${this.props.clientAuthSSEBaseUrl}${CommunicatorAuthAPIEndpointEnum.SSE_AUTH}`;
|
|
120
|
-
this.sseAuth = new EventSource(`${url}?${this.processingQueryParams(params)}
|
|
121
|
-
withCredentials: true,
|
|
122
|
-
});
|
|
120
|
+
this.sseAuth = new EventSource(`${url}?${this.processingQueryParams(params)}`);
|
|
123
121
|
|
|
124
122
|
if (this.sseAuth) {
|
|
125
123
|
this.sseAuth.addEventListener('open', (event: MessageEvent) => {
|