{"action":"created","issue":{"url":"https://api.github.com/repos/tjwebb/sails-auth/issues/36","labels_url":"https://api.github.com/repos/tjwebb/sails-auth/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/tjwebb/sails-auth/issues/36/comments","events_url":"https://api.github.com/repos/tjwebb/sails-auth/issues/36/events","html_url":"https://github.com/tjwebb/sails-auth/issues/36","id":67326450,"number":36,"title":"Email not transferred to SailsJS","user":{"login":"willemmulder","id":70933,"avatar_url":"https://avatars.githubusercontent.com/u/70933?v=3","gravatar_id":"","url":"https://api.github.com/users/willemmulder","html_url":"https://github.com/willemmulder","followers_url":"https://api.github.com/users/willemmulder/followers","following_url":"https://api.github.com/users/willemmulder/following{/other_user}","gists_url":"https://api.github.com/users/willemmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/willemmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willemmulder/subscriptions","organizations_url":"https://api.github.com/users/willemmulder/orgs","repos_url":"https://api.github.com/users/willemmulder/repos","events_url":"https://api.github.com/users/willemmulder/events{/privacy}","received_events_url":"https://api.github.com/users/willemmulder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-09T10:04:46Z","updated_at":"2015-04-09T11:17:18Z","closed_at":"2015-04-09T10:36:16Z","body":"I implemented sails-auth using the below in the passports.js file\r\n\r\n```\r\npassport : {\r\n        twitter : {\r\n            name : 'twitter',\r\n            protocol:'oauth',\r\n            strategy:require('passport-twitter').Strategy,\r\n            options:{\r\n                consumerKey:'...',\r\n                consumerSecret:'...'\r\n            }\r\n        }\r\n    }\r\n```\r\n\r\nThe twitter app has read/write permissions on my twitter profile. The auth also works, but then Sails crashes, because in User.js it tries to generate the Gravatar URL with 'this.email' which is not set at all. The generated user looks like this\r\n\r\n```\r\n{\r\n  \"owner\": 3,\r\n  \"username\": \"WillemMulder\",\r\n  \"id\": 3,\r\n  \"createdAt\": \"2015-04-07T17:05:04.120Z\",\r\n  \"updatedAt\": \"2015-04-07T17:05:04.212Z\"\r\n}\r\n```\r\n\r\nAny clue why the email might not be filled?"},"comment":{"url":"https://api.github.com/repos/tjwebb/sails-auth/issues/comments/91198460","html_url":"https://github.com/tjwebb/sails-auth/issues/36#issuecomment-91198460","issue_url":"https://api.github.com/repos/tjwebb/sails-auth/issues/36","id":91198460,"user":{"login":"willemmulder","id":70933,"avatar_url":"https://avatars.githubusercontent.com/u/70933?v=3","gravatar_id":"","url":"https://api.github.com/users/willemmulder","html_url":"https://github.com/willemmulder","followers_url":"https://api.github.com/users/willemmulder/followers","following_url":"https://api.github.com/users/willemmulder/following{/other_user}","gists_url":"https://api.github.com/users/willemmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/willemmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willemmulder/subscriptions","organizations_url":"https://api.github.com/users/willemmulder/orgs","repos_url":"https://api.github.com/users/willemmulder/repos","events_url":"https://api.github.com/users/willemmulder/events{/privacy}","received_events_url":"https://api.github.com/users/willemmulder/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T11:17:18Z","updated_at":"2015-04-09T11:17:18Z","body":"But... I just did :-) \r\n\r\nDid you mean some other repo?"}}