lobstakit-cloud 1.3.12 → 1.3.13

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": "lobstakit-cloud",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "description": "LobstaKit Cloud — Setup wizard and management for LobstaCloud gateways",
5
5
  "main": "server.js",
6
6
  "bin": {
@@ -1508,6 +1508,13 @@ function updateWebchatSection() {
1508
1508
  var webchatUrl = serve.webchatUrl || serve.url || '';
1509
1509
  var displayUrl = serve.url || '';
1510
1510
 
1511
+ // Auto-attach gateway token so the web chat opens without pairing prompt,
1512
+ // even when accessed via a reverse proxy (Tailscale Serve, nginx, etc.)
1513
+ if (webchatUrl && _gatewayInfo && _gatewayInfo.token) {
1514
+ var sep = webchatUrl.includes('?') ? '&' : '?';
1515
+ webchatUrl = webchatUrl + sep + 'token=' + encodeURIComponent(_gatewayInfo.token);
1516
+ }
1517
+
1511
1518
  if (urlEl) urlEl.textContent = displayUrl;
1512
1519
  if (linkEl) linkEl.href = webchatUrl;
1513
1520