{"action":"created","issue":{"url":"https://api.github.com/repos/sibartlett/hapi-io/issues/6","labels_url":"https://api.github.com/repos/sibartlett/hapi-io/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sibartlett/hapi-io/issues/6/comments","events_url":"https://api.github.com/repos/sibartlett/hapi-io/issues/6/events","html_url":"https://github.com/sibartlett/hapi-io/issues/6","id":89080113,"number":6,"title":"JWT Auth","user":{"login":"sgentile","id":132404,"avatar_url":"https://avatars.githubusercontent.com/u/132404?v=3","gravatar_id":"","url":"https://api.github.com/users/sgentile","html_url":"https://github.com/sgentile","followers_url":"https://api.github.com/users/sgentile/followers","following_url":"https://api.github.com/users/sgentile/following{/other_user}","gists_url":"https://api.github.com/users/sgentile/gists{/gist_id}","starred_url":"https://api.github.com/users/sgentile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgentile/subscriptions","organizations_url":"https://api.github.com/users/sgentile/orgs","repos_url":"https://api.github.com/users/sgentile/repos","events_url":"https://api.github.com/users/sgentile/events{/privacy}","received_events_url":"https://api.github.com/users/sgentile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-17T17:43:17Z","updated_at":"2015-06-29T16:09:46Z","closed_at":"2015-06-19T20:41:18Z","body":"First, thank you for this create plugin!\r\n\r\nWe are using : https://www.npmjs.com/package/hapi-auth-jwt2 \r\n\r\nOur Angular client handles sending the auth token on all our calls to the Hapi server endpoints.\r\n\r\nie. \r\n```\r\nvar _request = function (config) {\r\n\r\n            var authService = $injector.get('authService');\r\n\r\n            config.headers = config.headers || {};\r\n\r\n            if (authService.authentication.isAuth) {\r\n                config.headers.Authorization = 'Bearer ' + authService.authentication.token;\r\n            }\r\n\r\n            return config;\r\n        };\r\n```\r\n\r\nWhen doing a socket.io emit from the client - I'm not sure how to send this token back to the server ?"},"comment":{"url":"https://api.github.com/repos/sibartlett/hapi-io/issues/comments/116745244","html_url":"https://github.com/sibartlett/hapi-io/issues/6#issuecomment-116745244","issue_url":"https://api.github.com/repos/sibartlett/hapi-io/issues/6","id":116745244,"user":{"login":"sibartlett","id":216687,"avatar_url":"https://avatars.githubusercontent.com/u/216687?v=3","gravatar_id":"","url":"https://api.github.com/users/sibartlett","html_url":"https://github.com/sibartlett","followers_url":"https://api.github.com/users/sibartlett/followers","following_url":"https://api.github.com/users/sibartlett/following{/other_user}","gists_url":"https://api.github.com/users/sibartlett/gists{/gist_id}","starred_url":"https://api.github.com/users/sibartlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibartlett/subscriptions","organizations_url":"https://api.github.com/users/sibartlett/orgs","repos_url":"https://api.github.com/users/sibartlett/repos","events_url":"https://api.github.com/users/sibartlett/events{/privacy}","received_events_url":"https://api.github.com/users/sibartlett/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T16:09:46Z","updated_at":"2015-06-29T16:09:46Z","body":"@sgentile the latest version of hapi-io now automatically replicates the \"Authorization\" attribute to headers - so you could try dropping the `mapping` object."}}