我在哪里可以找到 MEAN.JS 中的 req.isAuthenticated() 函数?

Where can i find req.isAuthenticated() function in MEAN.JS?

我正在使用 MEAN.JS,但我无法在 MEAN.JS 中找到 req.isAuthenticated() 函数。请检查这个 link

https://github.com/meanjs/mean/releases/tag/v0.3.3

我正在使用相同的代码进行学习,请有人帮助我...

在 git 集线器上找到它。 https://github.com/jaredhanson/passport/blob/a892b9dc54dce34b7170ad5d73d8ccfba87f4fcf/lib/passport/http/request.js#L74

req.isAuthenticated = function() {
  var property = 'user';
  if (this._passport && this._passport.instance._userProperty) {
    property = this._passport.instance._userProperty;
  }
return (this[property]) ? true : false;
};

P.S.: 我刚刚注意到link已经在评论区提供了。不过,我还是要在这里留下答案,以便快速参考函数