Using everyauth with restify
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use everyauth to handle authentication for a rest api created with restify. But can't find a starting point. I'd expect to be doing something like: var restify = require('restify'); var everyauth = require('everyauth'); var server = restify.createServer(); server.use(everyauth.middleware()); but restify does not accept the everyauth middleware. How do I go about setting up restify and everyauth? 回答1: The issue you are having is restify does not and current will not have a middleware layer. The below is from the author of