Open fenichelar opened 8 years ago
I'm having the same issue. Any solution??
Thanks!
@fenichelar @fruedaCode did you solve this problem?
solve it! thanks!
2016-11-17 13:16 GMT+01:00 Paweł Hertman notifications@github.com:
@fenichelar https://github.com/fenichelar @fruedaCode https://github.com/fruedaCode did you solve this problem?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/langateam/sails-auth/issues/127#issuecomment-261232641, or mute the thread https://github.com/notifications/unsubscribe-auth/AVy63ywGWCcNtYtP97rFX-77eW9m7Zb-ks5q_EWigaJpZM4HakwJ .
@fruedaCode could you write how did you do that? I know it has been fixed in 2.1.4 version, but the latest version of sails-auth in npm is 2.1.3. I tried to install v2.1.4 directly from repository, but I've got an error "cannot find module 'node_modules/sails-auth'" (although it exists)
I directly changed that line on dist directory. But i think you could extend passport module and override the function.
Solved by #128 and released on v2.1.4.
Please @tjwebb, could you publish on NPM the versions 2.1.4 and above?
When logging in I get an error. I am using Google Auth. The error is produced during the following block in
passport.js
:return sails.models.user.findOne(passport.user.id);
errors becausepassport
is undefined. Any ideas how to fix?