且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

了解Passportjs自定义回调

更新时间:2023-11-14 16:19:52

javascript答案是它返回一个用第二组参数再次调用的函数。

The "javascript" answer is that it returns a function which is called again with those 2nd set of arguments.

该函数是链中每个策略失败的累加器。

That function is the "accumulator for failures from each strategy in the chain".

https://github.com/jaredhanson/passport/blob/master/lib/middleware /authenticate.js