{"action":"closed","issue":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/197","repository_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2","labels_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/197/comments","events_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/197/events","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/197","id":176644724,"number":197,"title":"Why set the toke in the headers and as a cookie?","user":{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false},"assignees":[{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-09-13T13:46:29Z","updated_at":"2016-09-13T21:19:27Z","closed_at":"2016-09-13T21:19:27Z","body":"> reply({text: 'You have been authenticated!'})\r\n.header(\"Authorization\", token)        // where token is the JWT \r\n.state(\"token\", token, cookie_options) // set the cookie with options \r\n\r\nI was wondering why you would want to set it in both?\r\n\r\n"}}
{"actor":{"display_login":"JMurphyWeb"}}