且构网

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

流星用脸书登录

更新时间:2023-11-10 10:54:52

好的,我解决了.

我仔细研究了登录尝试,发现oauth服务未与用户正确配对.我不知道为什么会这样,或者是否有更好的解决方法,但是我添加了一行:

I digged in the log-in attempts and noticed that the oauth service was not properly paired with the user. I don't know why that is or if there is a better solve but I added the line :

if (user.services) { var service = _.pairs(user.services)[0]; }

到我的onCreateUser挂钩,并在返回之前正确附加了用户对象.似乎已经解决了问题,但是我不知道我第一次做的不正确...

to my onCreateUser hook and appended the user object properly before returning it. It seems to have done the trick but I don't know what I was not doing properly the first time...