{"action":"created","issue":{"url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/109","labels_url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/109/comments","events_url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/109/events","html_url":"https://github.com/jfromaniello/passport.socketio/issues/109","id":105116674,"number":109,"title":"passport.socketio doesn't work with passport 0.3.0:  TypeError: Cannot set property 'user' of undefined","user":{"login":"garretraziel","id":185492,"avatar_url":"https://avatars.githubusercontent.com/u/185492?v=3","gravatar_id":"","url":"https://api.github.com/users/garretraziel","html_url":"https://github.com/garretraziel","followers_url":"https://api.github.com/users/garretraziel/followers","following_url":"https://api.github.com/users/garretraziel/following{/other_user}","gists_url":"https://api.github.com/users/garretraziel/gists{/gist_id}","starred_url":"https://api.github.com/users/garretraziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garretraziel/subscriptions","organizations_url":"https://api.github.com/users/garretraziel/orgs","repos_url":"https://api.github.com/users/garretraziel/repos","events_url":"https://api.github.com/users/garretraziel/events{/privacy}","received_events_url":"https://api.github.com/users/garretraziel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T20:56:59Z","updated_at":"2015-09-08T17:31:43Z","closed_at":null,"body":"Current version from npm (2.5.1) doesn't work with newest passport (0.3.0). Trying to log in with redirect to page with socket.io connection results in:\r\n\r\n```\r\nTypeError: Cannot set property 'user' of undefined\r\n   at /home/.../node_modules/passport.socketio/node_modules/passport/lib/http/request.js:50:35\r\n   at pass (/home/.../node_modules/passport/lib/authenticator.js:267:43)\r\n   at serialized (/home/.../node_modules/passport/lib/authenticator.js:276:7)\r\n   at serializeUser (/home/.../lib/secure.js:48:5)\r\n   at pass (/home/.../node_modules/passport/lib/authenticator.js:284:9)\r\n   at Authenticator.serializeUser (/home/.../node_modules/passport/lib/authenticator.js:289:5)\r\n   at IncomingMessage.req.login.req.logIn (/home/.../node_modules/passport.socketio/node_modules/passport/lib/http/request.js:48:29)\r\n   at Strategy.strategy.success (/home/.../node_modules/passport/lib/middleware/authenticate.js:228:13)\r\n   at verified (/home/.../node_modules/passport-local/lib/strategy.js:83:10)\r\n   at /home/.../lib/secure.js:33:32\r\n```\r\n\r\nDowngrading passport to 0.2.2 solves this problem. It looks like the same problem as here: jaredhanson/passport#400"},"comment":{"url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/comments/138642399","html_url":"https://github.com/jfromaniello/passport.socketio/issues/109#issuecomment-138642399","issue_url":"https://api.github.com/repos/jfromaniello/passport.socketio/issues/109","id":138642399,"user":{"login":"busheezy","id":6915170,"avatar_url":"https://avatars.githubusercontent.com/u/6915170?v=3","gravatar_id":"","url":"https://api.github.com/users/busheezy","html_url":"https://github.com/busheezy","followers_url":"https://api.github.com/users/busheezy/followers","following_url":"https://api.github.com/users/busheezy/following{/other_user}","gists_url":"https://api.github.com/users/busheezy/gists{/gist_id}","starred_url":"https://api.github.com/users/busheezy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busheezy/subscriptions","organizations_url":"https://api.github.com/users/busheezy/orgs","repos_url":"https://api.github.com/users/busheezy/repos","events_url":"https://api.github.com/users/busheezy/events{/privacy}","received_events_url":"https://api.github.com/users/busheezy/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T17:31:43Z","updated_at":"2015-09-08T17:31:43Z","body":"I have been going damn near insane because of this.  I have literally toyed around with this for four days and didn't see this issue when I was here last."}}