{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/209","repository_url":"https://api.github.com/repos/auth0/node-jsonwebtoken","labels_url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/209/comments","events_url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/209/events","html_url":"https://github.com/auth0/node-jsonwebtoken/issues/209","id":157623910,"number":209,"title":"All tokens with exp in payload permanently expired","user":{"login":"raghavendranvenkateswaran","id":15088666,"avatar_url":"https://avatars.githubusercontent.com/u/15088666?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavendranvenkateswaran","html_url":"https://github.com/raghavendranvenkateswaran","followers_url":"https://api.github.com/users/raghavendranvenkateswaran/followers","following_url":"https://api.github.com/users/raghavendranvenkateswaran/following{/other_user}","gists_url":"https://api.github.com/users/raghavendranvenkateswaran/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavendranvenkateswaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavendranvenkateswaran/subscriptions","organizations_url":"https://api.github.com/users/raghavendranvenkateswaran/orgs","repos_url":"https://api.github.com/users/raghavendranvenkateswaran/repos","events_url":"https://api.github.com/users/raghavendranvenkateswaran/events{/privacy}","received_events_url":"https://api.github.com/users/raghavendranvenkateswaran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T09:09:12Z","updated_at":"2016-06-01T04:35:42Z","closed_at":null,"body":"Tokens generated with \"exp\" in the payload are permanently expired since creation.\r\n e.g: \r\nvar token = jwt.sign(req.body,cert); for signing with below input\r\n{\r\n    \"sub\": \"admin@admin.com\",\r\n    \"iss\": \"https://apevolve.tcs.com\",\r\n    \"permissions\": \"Admin\",\r\n    \"exp\":60\r\n}\r\n\r\nare always returning \r\n{\r\n  \"name\": \"TokenExpiredError\",\r\n  \"message\": \"jwt expired\",\r\n  \"expiredAt\": \"1970-01-01T00:01:00.000Z\"\r\n}\r\non trying the verify token call \r\nvar decoded = jwt.verify(token,cert);\r\n\r\nboth calls are made from the same machine."},"comment":{"url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/comments/222890350","html_url":"https://github.com/auth0/node-jsonwebtoken/issues/209#issuecomment-222890350","issue_url":"https://api.github.com/repos/auth0/node-jsonwebtoken/issues/209","id":222890350,"user":{"login":"raghavendranvenkateswaran","id":15088666,"avatar_url":"https://avatars.githubusercontent.com/u/15088666?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavendranvenkateswaran","html_url":"https://github.com/raghavendranvenkateswaran","followers_url":"https://api.github.com/users/raghavendranvenkateswaran/followers","following_url":"https://api.github.com/users/raghavendranvenkateswaran/following{/other_user}","gists_url":"https://api.github.com/users/raghavendranvenkateswaran/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavendranvenkateswaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavendranvenkateswaran/subscriptions","organizations_url":"https://api.github.com/users/raghavendranvenkateswaran/orgs","repos_url":"https://api.github.com/users/raghavendranvenkateswaran/repos","events_url":"https://api.github.com/users/raghavendranvenkateswaran/events{/privacy}","received_events_url":"https://api.github.com/users/raghavendranvenkateswaran/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T04:35:41Z","updated_at":"2016-06-01T04:35:41Z","body":"I think that should be done in the backend.If needed a present Date can be added to options..\r\n@trendsetter37 as for the solution you provided... I am presently calling the JWT token node js service from a Java Client and would wish for the client to set the expiry on time span (so that dont face system time discrepancies and format issues). \r\nAlso , if I am trying with the example you provided above.. The \"exp\" field only takes in numbers and refuses to take this expression..? Any help on how I do it from my Java call to nodejs service calling jwt.sign..."}}
{"actor":{"display_login":"raghavendranvenkateswaran"}}