@andrey4emk/npm-app-back-b24 0.5.5 → 0.5.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrey4emk/npm-app-back-b24",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Bitrix24 OAuth helpers for Node.js projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -123,15 +123,13 @@ export class ChatApp {
123
123
  console.log("checkTokenChatApp called");
124
124
  try {
125
125
  const response = await fetch("https://api.chatapp.online/v1/tokens/check", {
126
- method: "POST",
126
+ method: "GET",
127
127
  headers: {
128
128
  Lang: "en",
129
129
  "Content-Type": "application/json",
130
130
  Accept: "application/json",
131
- },
132
- body: JSON.stringify({
133
131
  accessToken: this.auth.accessToken,
134
- }),
132
+ },
135
133
  });
136
134
 
137
135
  const data = await response.json();