@open-wa/wa-automate 4.32.6 → 4.32.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/dist/cli/server.js +2 -1
- package/package.json +1 -1
package/dist/cli/server.js
CHANGED
@@ -322,7 +322,8 @@ const setupSocketServer = (cliConfig, client) => __awaiter(void 0, void 0, void
|
|
322
322
|
io.use((socket, next) => {
|
323
323
|
if (socket.handshake.auth["apiKey"] == cliConfig.key)
|
324
324
|
next();
|
325
|
-
|
325
|
+
else
|
326
|
+
next(new Error("Authentication error"));
|
326
327
|
});
|
327
328
|
}
|
328
329
|
io.on("connection", (socket) => {
|
package/package.json
CHANGED