{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/405","repository_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js","labels_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/405/comments","events_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/405/events","html_url":"https://github.com/aws/amazon-cognito-identity-js/issues/405","id":230308722,"number":405,"title":"How to refresh IdToken using refreshToken Value after session Expire?","user":{"login":"tbiinfotech","id":17080270,"avatar_url":"https://avatars2.githubusercontent.com/u/17080270?v=3","gravatar_id":"","url":"https://api.github.com/users/tbiinfotech","html_url":"https://github.com/tbiinfotech","followers_url":"https://api.github.com/users/tbiinfotech/followers","following_url":"https://api.github.com/users/tbiinfotech/following{/other_user}","gists_url":"https://api.github.com/users/tbiinfotech/gists{/gist_id}","starred_url":"https://api.github.com/users/tbiinfotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbiinfotech/subscriptions","organizations_url":"https://api.github.com/users/tbiinfotech/orgs","repos_url":"https://api.github.com/users/tbiinfotech/repos","events_url":"https://api.github.com/users/tbiinfotech/events{/privacy}","received_events_url":"https://api.github.com/users/tbiinfotech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-22T07:36:39Z","updated_at":"2017-05-22T15:54:37Z","closed_at":"2017-05-22T15:37:19Z","body":"Is it possible we can force expire before one hour and get new IdToken using refresh token \r\nOR\r\nHow to get new IdToken after auto expire time using refreshToken value in this amazon-cognito-identity-js module?\r\n\r\nI am getting \r\n`TypeError: refreshToken.getToken is not a function` as error.\r\n\r\nI am using this code as follows:\r\n\r\n\r\n```\r\ncognitoUser.refreshSession(refreshToken, (err, session) => {\r\n                          if (err) {//throw err;\r\n                            console.log('In the err'+err);\r\n                          }\r\n                          else{\r\n                            console.log('session '+session);\r\n                          }\r\n                    }); \r\n```\r\n\r\n\r\nI am passing refreshToken correct value in the function. Can any one please help me out there?"},"comment":{"url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/comments/303141832","html_url":"https://github.com/aws/amazon-cognito-identity-js/issues/405#issuecomment-303141832","issue_url":"https://api.github.com/repos/aws/amazon-cognito-identity-js/issues/405","id":303141832,"user":{"login":"tbiinfotech","id":17080270,"avatar_url":"https://avatars2.githubusercontent.com/u/17080270?v=3","gravatar_id":"","url":"https://api.github.com/users/tbiinfotech","html_url":"https://github.com/tbiinfotech","followers_url":"https://api.github.com/users/tbiinfotech/followers","following_url":"https://api.github.com/users/tbiinfotech/following{/other_user}","gists_url":"https://api.github.com/users/tbiinfotech/gists{/gist_id}","starred_url":"https://api.github.com/users/tbiinfotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbiinfotech/subscriptions","organizations_url":"https://api.github.com/users/tbiinfotech/orgs","repos_url":"https://api.github.com/users/tbiinfotech/repos","events_url":"https://api.github.com/users/tbiinfotech/events{/privacy}","received_events_url":"https://api.github.com/users/tbiinfotech/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T15:54:37Z","updated_at":"2017-05-22T15:54:37Z","body":"Yes I have discussed same issue with the colleague. Can not I ask there now ?"}}
{"actor":{"display_login":"tbiinfotech"}}