{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/608","repository_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example","labels_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/608/comments","events_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/608/events","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/608","id":118473954,"number":608,"title":"How to include JWT authentication in the middleware","user":{"login":"nicolabortignon","id":883459,"avatar_url":"https://avatars.githubusercontent.com/u/883459?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolabortignon","html_url":"https://github.com/nicolabortignon","followers_url":"https://api.github.com/users/nicolabortignon/followers","following_url":"https://api.github.com/users/nicolabortignon/following{/other_user}","gists_url":"https://api.github.com/users/nicolabortignon/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolabortignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolabortignon/subscriptions","organizations_url":"https://api.github.com/users/nicolabortignon/orgs","repos_url":"https://api.github.com/users/nicolabortignon/repos","events_url":"https://api.github.com/users/nicolabortignon/events{/privacy}","received_events_url":"https://api.github.com/users/nicolabortignon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2015-11-23T21:17:02Z","updated_at":"2016-02-24T20:52:00Z","closed_at":null,"body":"I'm trying to include JWT ( http://jwt.io/ ) token authentication in the boilerplate.\r\nLet's pretend for a second that the autentication process serverside is already there.\r\nWhat I do is calling    API/login  passing username and password and I return a token. From that point on, I'd like the middleware to attach this to every http calls.\r\n```\r\n headers: {\r\n                    'Authorization': `Bearer *TOKEN* `\r\n }\r\n```\r\n\r\nWhere *TOKEN*  is  this.store.token variable defined in the redux auth.js.\r\n\r\nHow can I do that ?"},"comment":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/comments/188449150","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/608#issuecomment-188449150","issue_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/608","id":188449150,"user":{"login":"oyeanuj","id":9633371,"avatar_url":"https://avatars.githubusercontent.com/u/9633371?v=3","gravatar_id":"","url":"https://api.github.com/users/oyeanuj","html_url":"https://github.com/oyeanuj","followers_url":"https://api.github.com/users/oyeanuj/followers","following_url":"https://api.github.com/users/oyeanuj/following{/other_user}","gists_url":"https://api.github.com/users/oyeanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/oyeanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyeanuj/subscriptions","organizations_url":"https://api.github.com/users/oyeanuj/orgs","repos_url":"https://api.github.com/users/oyeanuj/repos","events_url":"https://api.github.com/users/oyeanuj/events{/privacy}","received_events_url":"https://api.github.com/users/oyeanuj/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T20:52:00Z","updated_at":"2016-02-24T20:52:00Z","body":"Did any of you have any thoughts on the approach mentioned in these two repos?\r\n\r\n- https://github.com/auth0/redux-auth \r\n- https://github.com/lynndylanhurley/redux-auth"}}