{"action":"created","issue":{"url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/57","labels_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/57/comments","events_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/57/events","html_url":"https://github.com/dgrijalva/jwt-go/pull/57","id":62266191,"number":57,"title":"Adding a JWT structure for developer convenience","user":{"login":"cosiner","id":7279362,"avatar_url":"https://avatars.githubusercontent.com/u/7279362?v=3","gravatar_id":"","url":"https://api.github.com/users/cosiner","html_url":"https://github.com/cosiner","followers_url":"https://api.github.com/users/cosiner/followers","following_url":"https://api.github.com/users/cosiner/following{/other_user}","gists_url":"https://api.github.com/users/cosiner/gists{/gist_id}","starred_url":"https://api.github.com/users/cosiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosiner/subscriptions","organizations_url":"https://api.github.com/users/cosiner/orgs","repos_url":"https://api.github.com/users/cosiner/repos","events_url":"https://api.github.com/users/cosiner/events{/privacy}","received_events_url":"https://api.github.com/users/cosiner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T02:39:06Z","updated_at":"2015-03-18T00:13:59Z","closed_at":"2015-03-17T23:45:57Z","pull_request":{"url":"https://api.github.com/repos/dgrijalva/jwt-go/pulls/57","html_url":"https://github.com/dgrijalva/jwt-go/pull/57","diff_url":"https://github.com/dgrijalva/jwt-go/pull/57.diff","patch_url":"https://github.com/dgrijalva/jwt-go/pull/57.patch"},"body":"It seems unnecessary to pass the key or keyfunc for every token signing or token string parsing, they normally will not be changed, so i add a structure to lirerate people from this. :)."},"comment":{"url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/comments/82649602","html_url":"https://github.com/dgrijalva/jwt-go/pull/57#issuecomment-82649602","issue_url":"https://api.github.com/repos/dgrijalva/jwt-go/issues/57","id":82649602,"user":{"login":"cosiner","id":7279362,"avatar_url":"https://avatars.githubusercontent.com/u/7279362?v=3","gravatar_id":"","url":"https://api.github.com/users/cosiner","html_url":"https://github.com/cosiner","followers_url":"https://api.github.com/users/cosiner/followers","following_url":"https://api.github.com/users/cosiner/following{/other_user}","gists_url":"https://api.github.com/users/cosiner/gists{/gist_id}","starred_url":"https://api.github.com/users/cosiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosiner/subscriptions","organizations_url":"https://api.github.com/users/cosiner/orgs","repos_url":"https://api.github.com/users/cosiner/repos","events_url":"https://api.github.com/users/cosiner/events{/privacy}","received_events_url":"https://api.github.com/users/cosiner/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T00:13:59Z","updated_at":"2015-03-18T00:13:59Z","body":"Thanks for reply, i'm thought that the key and keyfunc normally will not be changed, so we needn't pass them as parameter in every function call about token, just use a structure wrap it.\r\nAnd this provide another choice for developers, and also, it doesn't breaking the existing API.\r\n\r\nPS:Sorry, i'm not a native English speaker, maybe my description is not so clearly."}}