@andrey4emk/npm-app-back-b24 0.5.6 → 0.5.7
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 +2 -1
package/package.json
CHANGED
package/sendMessage/chatApp.js
CHANGED
|
@@ -121,6 +121,7 @@ export class ChatApp {
|
|
|
121
121
|
|
|
122
122
|
async checkTokenChatApp() {
|
|
123
123
|
console.log("checkTokenChatApp called");
|
|
124
|
+
console.log("Current accessToken:", this.auth.accessToken);
|
|
124
125
|
try {
|
|
125
126
|
const response = await fetch("https://api.chatapp.online/v1/tokens/check", {
|
|
126
127
|
method: "GET",
|
|
@@ -135,7 +136,7 @@ export class ChatApp {
|
|
|
135
136
|
const data = await response.json();
|
|
136
137
|
console.log("Token check response data:", data);
|
|
137
138
|
if (!data.success) {
|
|
138
|
-
await this.refreshTokenChatApp();
|
|
139
|
+
// await this.refreshTokenChatApp();
|
|
139
140
|
return { error: false, message: "Токен обновлен" };
|
|
140
141
|
} else {
|
|
141
142
|
return { error: false, message: "Токен действителен" };
|