@gloablehive/ipad-wechat-plugin 1.0.22 → 1.0.23

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/index.js CHANGED
@@ -17,10 +17,10 @@ export default defineChannelPluginEntry({
17
17
  plugin: ipadWeChatPlugin,
18
18
  registerFull(api) {
19
19
  console.log("[iPad WeChat] registerFull called, registering webhook route");
20
- // Register webhook endpoint - use the standard path pattern
20
+ // Register webhook endpoint - use the standard path pattern with plugin auth
21
21
  api.registerHttpRoute({
22
22
  path: "/api/channels/ipad-wechat/webhook",
23
- auth: "gateway", // Use gateway auth for standard path
23
+ auth: "plugin", // Plugin auth - we verify ourselves
24
24
  match: "exact",
25
25
  handler: async (req, res) => {
26
26
  console.log("[iPad WeChat] Handler called, url:", req.url);
package/index.ts CHANGED
@@ -21,10 +21,10 @@ export default defineChannelPluginEntry({
21
21
  registerFull(api) {
22
22
  console.log("[iPad WeChat] registerFull called, registering webhook route");
23
23
 
24
- // Register webhook endpoint - use the standard path pattern
24
+ // Register webhook endpoint - use the standard path pattern with plugin auth
25
25
  api.registerHttpRoute({
26
26
  path: "/api/channels/ipad-wechat/webhook",
27
- auth: "gateway", // Use gateway auth for standard path
27
+ auth: "plugin", // Plugin auth - we verify ourselves
28
28
  match: "exact",
29
29
  handler: async (req, res) => {
30
30
  console.log("[iPad WeChat] Handler called, url:", (req as any).url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gloablehive/ipad-wechat-plugin",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for iPad WeChat protocol - enables sending/receiving WeChat messages through iPad protocol",
6
6
  "main": "index.ts",