@andrey4emk/npm-app-back-b24 0.5.4 → 0.5.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/package.json +1 -1
- package/sendMessage/chatApp.js +3 -1
package/package.json
CHANGED
package/sendMessage/chatApp.js
CHANGED
|
@@ -135,6 +135,7 @@ export class ChatApp {
|
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
const data = await response.json();
|
|
138
|
+
console.log("Token check response data:", data);
|
|
138
139
|
if (!data.success) {
|
|
139
140
|
await this.refreshTokenChatApp();
|
|
140
141
|
return { error: false, message: "Токен обновлен" };
|
|
@@ -164,6 +165,7 @@ export class ChatApp {
|
|
|
164
165
|
});
|
|
165
166
|
|
|
166
167
|
const data = await response.json();
|
|
168
|
+
console.log("Token make response data:", data);
|
|
167
169
|
if (!data.success) {
|
|
168
170
|
return { error: true, message: "Не удалось получить токен ChatApp", data: data };
|
|
169
171
|
} else {
|
|
@@ -194,7 +196,7 @@ export class ChatApp {
|
|
|
194
196
|
}),
|
|
195
197
|
});
|
|
196
198
|
const data = await response.json();
|
|
197
|
-
|
|
199
|
+
console.log("Token refresh response data:", data);
|
|
198
200
|
if (!data.success) {
|
|
199
201
|
let resMakeToken = await this.makeTokenChatApp();
|
|
200
202
|
|