{"action":"created","issue":{"url":"https://api.github.com/repos/sails101/even-more-passport/issues/2","labels_url":"https://api.github.com/repos/sails101/even-more-passport/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sails101/even-more-passport/issues/2/comments","events_url":"https://api.github.com/repos/sails101/even-more-passport/issues/2/events","html_url":"https://github.com/sails101/even-more-passport/issues/2","id":54972765,"number":2,"title":"Error on server startup","user":{"login":"utkuturunc","id":10516601,"avatar_url":"https://avatars.githubusercontent.com/u/10516601?v=3","gravatar_id":"","url":"https://api.github.com/users/utkuturunc","html_url":"https://github.com/utkuturunc","followers_url":"https://api.github.com/users/utkuturunc/followers","following_url":"https://api.github.com/users/utkuturunc/following{/other_user}","gists_url":"https://api.github.com/users/utkuturunc/gists{/gist_id}","starred_url":"https://api.github.com/users/utkuturunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkuturunc/subscriptions","organizations_url":"https://api.github.com/users/utkuturunc/orgs","repos_url":"https://api.github.com/users/utkuturunc/repos","events_url":"https://api.github.com/users/utkuturunc/events{/privacy}","received_events_url":"https://api.github.com/users/utkuturunc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-21T03:19:28Z","updated_at":"2015-01-21T14:38:51Z","closed_at":null,"body":"I followed the readme file but when I try sails lift I get this error. I tried copying the file straight from here.\r\nThis is the line:\r\n      self.use(new Strategy(options, self.protocols[protocol]));\r\n\r\nerror: TypeError: undefined is not a function\r\n    at /home/vagrant/server/api/services/passport.js:344:16\r\n    at Array.forEach (native)\r\n    at Authenticator.passport.loadStrategies (/home/vagrant/server/api/services/passport.js:281:27)\r\n    at Object.module.exports.bootstrap (/home/vagrant/server/config/bootstrap.js:13:25)\r\n    at Sails.runBootstrap (/home/vagrant/server/node_modules/sails/lib/app/private/bootstrap.js:46:27)\r\n    at Sails.bound [as runBootstrap] (/home/vagrant/server/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n    at Sails.initialize (/home/vagrant/server/node_modules/sails/lib/app/private/initialize.js:44:9)\r\n    at bound (/home/vagrant/server/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n    at /home/vagrant/server/node_modules/sails/node_modules/async/lib/async.js:551:21\r\n    at /home/vagrant/server/node_modules/sails/node_modules/async/lib/async.js:227:13 [TypeError: undefined is not a function]\r\nvagrant@sailsjs ~/server>\r\n"},"comment":{"url":"https://api.github.com/repos/sails101/even-more-passport/issues/comments/70847738","html_url":"https://github.com/sails101/even-more-passport/issues/2#issuecomment-70847738","issue_url":"https://api.github.com/repos/sails101/even-more-passport/issues/2","id":70847738,"user":{"login":"utkuturunc","id":10516601,"avatar_url":"https://avatars.githubusercontent.com/u/10516601?v=3","gravatar_id":"","url":"https://api.github.com/users/utkuturunc","html_url":"https://github.com/utkuturunc","followers_url":"https://api.github.com/users/utkuturunc/followers","following_url":"https://api.github.com/users/utkuturunc/following{/other_user}","gists_url":"https://api.github.com/users/utkuturunc/gists{/gist_id}","starred_url":"https://api.github.com/users/utkuturunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkuturunc/subscriptions","organizations_url":"https://api.github.com/users/utkuturunc/orgs","repos_url":"https://api.github.com/users/utkuturunc/repos","events_url":"https://api.github.com/users/utkuturunc/events{/privacy}","received_events_url":"https://api.github.com/users/utkuturunc/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T14:38:51Z","updated_at":"2015-01-21T14:38:51Z","body":"I just solved the issue. A previous trial with passport was causing it. Reversing changes made it. Sorry for botherin you."}}