1
在findOrCreateUser
函數中,我返回promise
,然後我用mongoDB中的用戶文檔完成。node.js everyauth twitter mongodb錯誤:您正試圖訪問由`findUserById`配置的屬性/方法,您沒有配置?
然後,它給這個錯誤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很好。
你有任何想法,爲什麼它需要一個'findUserById'或它使用了什麼? –
它使用它來使用戶對象在req.user上可用 – meeech