用逻辑AND招摇节点多个安全处理程序

我有一个swagger节点快递应用程序,我不知道如何有两个安全处理程序?

我在swagger.yaml中有两个SecurityDefinitions

securityDefinitions: appKeyA: type: apiKey name: Authorization in: header appKeyB: type: apiKey in: header name: X-APP-ID 

在我的路线

 /foo security: - appKeyA: [] appKeyB: [] 

所以逻辑和

在我的app.js

 app.use( middleware.swaggerSecurity({ //manage token function in the 'auth' module appKeyA: auth.verifyToken }) ); 

它成功运行我的verifyToken函数中的代码

 exports.verifyToken = function(req, authOrSecDef, token, callback) { ... } 

现在我在哪里把第二个函数,以防止得到错误:未知的安全处理程序:appKeyB

谢谢