{"action":"created","issue":{"url":"https://api.github.com/repos/yourkarma/JWT/issues/131","repository_url":"https://api.github.com/repos/yourkarma/JWT","labels_url":"https://api.github.com/repos/yourkarma/JWT/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/yourkarma/JWT/issues/131/comments","events_url":"https://api.github.com/repos/yourkarma/JWT/issues/131/events","html_url":"https://github.com/yourkarma/JWT/issues/131","id":233877197,"number":131,"title":"JWTClaimsSet not showing value in payload","user":{"login":"kashiftriffort","id":438943,"avatar_url":"https://avatars3.githubusercontent.com/u/438943?v=3","gravatar_id":"","url":"https://api.github.com/users/kashiftriffort","html_url":"https://github.com/kashiftriffort","followers_url":"https://api.github.com/users/kashiftriffort/followers","following_url":"https://api.github.com/users/kashiftriffort/following{/other_user}","gists_url":"https://api.github.com/users/kashiftriffort/gists{/gist_id}","starred_url":"https://api.github.com/users/kashiftriffort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashiftriffort/subscriptions","organizations_url":"https://api.github.com/users/kashiftriffort/orgs","repos_url":"https://api.github.com/users/kashiftriffort/repos","events_url":"https://api.github.com/users/kashiftriffort/events{/privacy}","received_events_url":"https://api.github.com/users/kashiftriffort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-06T12:35:04Z","updated_at":"2017-06-20T18:25:36Z","closed_at":null,"body":"I need to pass issuedAt and expirationDate using JWTClaimsSet. When I try to encode payload values after encodeClaimsSet, token generated showing wrong values. I am not getting payload values from token generated in payload section, it showing in header section. Please let me know what I am doing wrong.\r\n\r\n    JWTClaimsSet *claimsSet = [[JWTClaimsSet alloc] init];\r\n    NSDate *currentDate = [NSDate date];\r\n    claimsSet.issuedAt = currentDate;\r\n    claimsSet.expirationDate = [currentDate dateByAddingTimeInterval:15];\r\n    \r\n    NSString *secret = @\"secret\";\r\n    id<JWTAlgorithm> algorithm = [JWTAlgorithmFactory algorithmByName:@\"HS256\"];\r\n    JWTBuilder *encodeBuilder = [JWT encodeClaimsSet:claimsSet];\r\n    NSString *testResult = encodeBuilder.secret(secret).algorithm(algorithm).headers(payload).encode;\r\n"},"comment":{"url":"https://api.github.com/repos/yourkarma/JWT/issues/comments/309846139","html_url":"https://github.com/yourkarma/JWT/issues/131#issuecomment-309846139","issue_url":"https://api.github.com/repos/yourkarma/JWT/issues/131","id":309846139,"user":{"login":"lolgear","id":2188522,"avatar_url":"https://avatars2.githubusercontent.com/u/2188522?v=3","gravatar_id":"","url":"https://api.github.com/users/lolgear","html_url":"https://github.com/lolgear","followers_url":"https://api.github.com/users/lolgear/followers","following_url":"https://api.github.com/users/lolgear/following{/other_user}","gists_url":"https://api.github.com/users/lolgear/gists{/gist_id}","starred_url":"https://api.github.com/users/lolgear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolgear/subscriptions","organizations_url":"https://api.github.com/users/lolgear/orgs","repos_url":"https://api.github.com/users/lolgear/repos","events_url":"https://api.github.com/users/lolgear/events{/privacy}","received_events_url":"https://api.github.com/users/lolgear/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T18:25:36Z","updated_at":"2017-06-20T18:25:36Z","body":"@alexshepard @kashiftriffort \r\n\r\nCould you check latest master?\r\n\r\n#134 "}}
{"actor":{"display_login":"lolgear"}}