-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passport object undefined #127
Comments
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:
|
@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. |
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?The text was updated successfully, but these errors were encountered: