{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/19","repository_url":"https://api.github.com/repos/IdentityModel/oidc-client-js","labels_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/19/comments","events_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/19/events","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/19","id":134965574,"number":19,"title":"Shouldn't Token expired check be based on UTC time?","user":{"login":"merijndejonge","id":1928998,"avatar_url":"https://avatars.githubusercontent.com/u/1928998?v=3","gravatar_id":"","url":"https://api.github.com/users/merijndejonge","html_url":"https://github.com/merijndejonge","followers_url":"https://api.github.com/users/merijndejonge/followers","following_url":"https://api.github.com/users/merijndejonge/following{/other_user}","gists_url":"https://api.github.com/users/merijndejonge/gists{/gist_id}","starred_url":"https://api.github.com/users/merijndejonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merijndejonge/subscriptions","organizations_url":"https://api.github.com/users/merijndejonge/orgs","repos_url":"https://api.github.com/users/merijndejonge/repos","events_url":"https://api.github.com/users/merijndejonge/events{/privacy}","received_events_url":"https://api.github.com/users/merijndejonge/received_events","type":"User","site_admin":false},"labels":[{"id":183005711,"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-02-19T20:25:34Z","updated_at":"2016-11-03T12:11:20Z","closed_at":"2016-02-22T18:01:45Z","body":"Hi,\nIn method validateIdTokenAsync the following code checks if a token is expired or not:\n\n``` javascript\n    var now = parseInt(Date.now() / 1000);\n    if (id_token_contents.exp < now ) {\n       return error(\"Token expired\");\n    }\n```\n\nShouldn't take this check time zones into account. In typical cases, the id_token_contents.exp value is provided by the server, right, which may run in another timezone than the client that executes `Date.now()`. My guess is that `now` should be corrected with the timezone offset as returned by `new Date().getTimezoneOffset()`.\n\nAm I correct in this, or did I overlook something?\n\nKind regards,\nMerijn\n"},"comment":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/comments/258126009","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/19#issuecomment-258126009","issue_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/19","id":258126009,"user":{"login":"SebastianStehle","id":1236435,"avatar_url":"https://avatars.githubusercontent.com/u/1236435?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianStehle","html_url":"https://github.com/SebastianStehle","followers_url":"https://api.github.com/users/SebastianStehle/followers","following_url":"https://api.github.com/users/SebastianStehle/following{/other_user}","gists_url":"https://api.github.com/users/SebastianStehle/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianStehle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianStehle/subscriptions","organizations_url":"https://api.github.com/users/SebastianStehle/orgs","repos_url":"https://api.github.com/users/SebastianStehle/repos","events_url":"https://api.github.com/users/SebastianStehle/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianStehle/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T12:11:20Z","updated_at":"2016-11-03T12:11:20Z","body":"@merijndejonge How have you solved it? I have the same issue at the moment"}}
{"actor":{"display_login":"SebastianStehle"}}