Nodejs Wechat token authentication failed, ask for help

uses the egg library and has wechat,co-wechat-api,egg-wechat-api

respectively.

clipboard.png
there is no Token in several api clocks

router.js
app.get("/wechat", "user.wechat");

controlleruser.js
const Controller = require("egg").Controller;
// const WechatApi = require("egg").wechatApi;
// var WechatAPI = require("co-wechat-api");
// var API = require("wechat-api");
var wechat = require("wechat");
var config = {
  token: "test",
  appid: "test",
  encodingAESKey: "nihysCSVJd1tZDWme7JQCbTUIuIGcRgfzQt93Kn3dCK",
  checkSignature: true // truefalse
};

class UserController extends Controller {
  async wechat(){
      //?
  }
}

keeps prompting token verification to fail. Could you tell me how to write the wechat function here?

Menu