{"action":"created","issue":{"url":"https://api.github.com/repos/waterlock/waterlock/issues/33","repository_url":"https://api.github.com/repos/waterlock/waterlock","labels_url":"https://api.github.com/repos/waterlock/waterlock/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/waterlock/waterlock/issues/33/comments","events_url":"https://api.github.com/repos/waterlock/waterlock/issues/33/events","html_url":"https://github.com/waterlock/waterlock/issues/33","id":41272719,"number":33,"title":"Document how users signup, login, and use JWT. ","user":{"login":"rattrayalex","id":704302,"avatar_url":"https://avatars.githubusercontent.com/u/704302?v=3","gravatar_id":"","url":"https://api.github.com/users/rattrayalex","html_url":"https://github.com/rattrayalex","followers_url":"https://api.github.com/users/rattrayalex/followers","following_url":"https://api.github.com/users/rattrayalex/following{/other_user}","gists_url":"https://api.github.com/users/rattrayalex/gists{/gist_id}","starred_url":"https://api.github.com/users/rattrayalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rattrayalex/subscriptions","organizations_url":"https://api.github.com/users/rattrayalex/orgs","repos_url":"https://api.github.com/users/rattrayalex/repos","events_url":"https://api.github.com/users/rattrayalex/events{/privacy}","received_events_url":"https://api.github.com/users/rattrayalex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2014-08-27T11:27:17Z","updated_at":"2016-11-07T02:04:46Z","closed_at":null,"body":"Currently, it seems this information is only contained in the screencast, which is insufficient. While an experienced sails user may find it intuitive, I was not aware that you had to `POST` to `/user/login` with `email` and `password` for both signup and login. Actually, I'm still not sure that's correct. \n\nIt's also a little unclear what to do with Twitter/Facebook auth.... the need to go to `/auth/login?type=twitter` I don't think is documented either. \n\nI think the same goes for JWT. \n\nOf course, \"it works as-is\", but is a little less friendly to beginners without this. \n"},"comment":{"url":"https://api.github.com/repos/waterlock/waterlock/issues/comments/258731562","html_url":"https://github.com/waterlock/waterlock/issues/33#issuecomment-258731562","issue_url":"https://api.github.com/repos/waterlock/waterlock/issues/33","id":258731562,"user":{"login":"rattrayalex","id":704302,"avatar_url":"https://avatars.githubusercontent.com/u/704302?v=3","gravatar_id":"","url":"https://api.github.com/users/rattrayalex","html_url":"https://github.com/rattrayalex","followers_url":"https://api.github.com/users/rattrayalex/followers","following_url":"https://api.github.com/users/rattrayalex/following{/other_user}","gists_url":"https://api.github.com/users/rattrayalex/gists{/gist_id}","starred_url":"https://api.github.com/users/rattrayalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rattrayalex/subscriptions","organizations_url":"https://api.github.com/users/rattrayalex/orgs","repos_url":"https://api.github.com/users/rattrayalex/repos","events_url":"https://api.github.com/users/rattrayalex/events{/privacy}","received_events_url":"https://api.github.com/users/rattrayalex/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T02:04:46Z","updated_at":"2016-11-07T02:04:46Z","body":"@reshadf from what I can understand from re-reading the above:\r\n\r\n1. make a POST to `/auth/login?type=local` with params `email`, `password` and (at least if using jQuery for POSTing) `xhrFields: {withCredentials: true}`\r\n2. Extract cookies from the response\r\n3. Use those cookies when hitting `/user/jwt`"}}
{"actor":{"display_login":"rattrayalex"}}