@tiledesk/tiledesk-whatsapp-connector 0.1.61 → 0.1.62
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
package/template/detail.html
CHANGED
|
@@ -214,6 +214,13 @@
|
|
|
214
214
|
|
|
215
215
|
<p style="font-size: 18px;"><b>What's new?</b></p>
|
|
216
216
|
|
|
217
|
+
<div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
|
|
218
|
+
<div>
|
|
219
|
+
<p>Fixed bug: custom authentication error</p>
|
|
220
|
+
</div>
|
|
221
|
+
<p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.62</b></p>
|
|
222
|
+
</div>
|
|
223
|
+
|
|
217
224
|
<div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
|
|
218
225
|
<div>
|
|
219
226
|
<p>Bug fixes and performance improvements</p>
|
|
@@ -277,17 +277,13 @@ class TiledeskChannel {
|
|
|
277
277
|
fixToken(token) {
|
|
278
278
|
|
|
279
279
|
let index = token.lastIndexOf("JWT ");
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/*
|
|
285
|
-
if (token.startsWith('JWT ')) {
|
|
286
|
-
return token
|
|
280
|
+
if (index != -1) {
|
|
281
|
+
let new_token = token.substring(index + 4);
|
|
282
|
+
return 'JWT ' + new_token;
|
|
287
283
|
} else {
|
|
288
|
-
return 'JWT ' + token
|
|
284
|
+
return 'JWT ' + token;
|
|
289
285
|
}
|
|
290
|
-
|
|
286
|
+
|
|
291
287
|
}
|
|
292
288
|
|
|
293
289
|
}
|