{"action":"closed","issue":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/77","labels_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/77/comments","events_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/77/events","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/77","id":98936837,"number":77,"title":"Use err from validateFunc in response?","user":{"login":"alanshaw","id":152863,"avatar_url":"https://avatars.githubusercontent.com/u/152863?v=3","gravatar_id":"","url":"https://api.github.com/users/alanshaw","html_url":"https://github.com/alanshaw","followers_url":"https://api.github.com/users/alanshaw/followers","following_url":"https://api.github.com/users/alanshaw/following{/other_user}","gists_url":"https://api.github.com/users/alanshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/alanshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanshaw/subscriptions","organizations_url":"https://api.github.com/users/alanshaw/orgs","repos_url":"https://api.github.com/users/alanshaw/repos","events_url":"https://api.github.com/users/alanshaw/events{/privacy}","received_events_url":"https://api.github.com/users/alanshaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-04T10:19:02Z","updated_at":"2015-08-11T14:09:52Z","closed_at":"2015-08-11T14:09:52Z","body":"Do you think that if err is a boom then it should be used as the first arg to `reply` here?:\r\nhttps://github.com/dwyl/hapi-auth-jwt2/blob/master/lib/index.js#L62\r\n\r\nBy calling the callback to validateFunc with an error the caller is explicitly not saying that the token is valid or invalid, just that an error was encountered during validation."}}