{"action":"created","issue":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/467","repository_url":"https://api.github.com/repos/kriasoft/react-starter-kit","labels_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/467/comments","events_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/467/events","html_url":"https://github.com/kriasoft/react-starter-kit/issues/467","id":136930683,"number":467,"title":"Create login(), logout() GraphQL mutations","user":{"login":"koistya","id":197134,"avatar_url":"https://avatars.githubusercontent.com/u/197134?v=3","gravatar_id":"","url":"https://api.github.com/users/koistya","html_url":"https://github.com/koistya","followers_url":"https://api.github.com/users/koistya/followers","following_url":"https://api.github.com/users/koistya/following{/other_user}","gists_url":"https://api.github.com/users/koistya/gists{/gist_id}","starred_url":"https://api.github.com/users/koistya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koistya/subscriptions","organizations_url":"https://api.github.com/users/koistya/orgs","repos_url":"https://api.github.com/users/koistya/repos","events_url":"https://api.github.com/users/koistya/events{/privacy}","received_events_url":"https://api.github.com/users/koistya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-27T15:26:57Z","updated_at":"2016-03-16T18:19:29Z","closed_at":null,"body":"```\r\nsrc/data/mutations/user.login.js\r\nsrc/data/mutations/user.logout.js\r\n```\r\n\r\nLogin mutations validates user's email and password via `passport.validate('basic')` or `passport.validate('local')`, creates `id_token` JWT token, sends it via HttpOnly cookie and refreshes `me` query. Logout mutation removes `id_token` cookie and refreshes the `me` query.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/31372510-create-login-logout-graphql-mutations?utm_campaign=plugin&utm_content=tracker%2F1144755&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1144755&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/comments/197467612","html_url":"https://github.com/kriasoft/react-starter-kit/issues/467#issuecomment-197467612","issue_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/467","id":197467612,"user":{"login":"koistya","id":197134,"avatar_url":"https://avatars.githubusercontent.com/u/197134?v=3","gravatar_id":"","url":"https://api.github.com/users/koistya","html_url":"https://github.com/koistya","followers_url":"https://api.github.com/users/koistya/followers","following_url":"https://api.github.com/users/koistya/following{/other_user}","gists_url":"https://api.github.com/users/koistya/gists{/gist_id}","starred_url":"https://api.github.com/users/koistya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koistya/subscriptions","organizations_url":"https://api.github.com/users/koistya/orgs","repos_url":"https://api.github.com/users/koistya/repos","events_url":"https://api.github.com/users/koistya/events{/privacy}","received_events_url":"https://api.github.com/users/koistya/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T18:19:29Z","updated_at":"2016-03-16T18:19:29Z","body":"@Bogdaan if you already use GraphQL for data, why to use another technology for login/logout?"}}