【发布时间】:2012-10-17 20:24:17
【问题描述】:
在findOrCreateUser 函数中,我返回一个promise,然后我使用来自 mongoDB 的用户文档来完成它。
然后它给出了这个错误You are trying to access the attribute/method configured by findUserById, which you did not configure
我使用了这个人的教程http://nodetuts.com/tutorials/26-starting-with-everyauth.html#video 他没有做任何事情。为什么它甚至需要一个findUserById 函数?我将返回整个文档,而不仅仅是一个 ID。
所以,是的,我该如何纠正这个问题?我想在你返回你的promise 之后,everyauth 就可以开始了。
【问题讨论】: