{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/42","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/42/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/42/events","html_url":"https://github.com/aws/aws-amplify/issues/42","id":279785525,"number":42,"title":"Refreshing access token","user":{"login":"adamjv90","id":498168,"avatar_url":"https://avatars3.githubusercontent.com/u/498168?v=4","gravatar_id":"","url":"https://api.github.com/users/adamjv90","html_url":"https://github.com/adamjv90","followers_url":"https://api.github.com/users/adamjv90/followers","following_url":"https://api.github.com/users/adamjv90/following{/other_user}","gists_url":"https://api.github.com/users/adamjv90/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjv90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjv90/subscriptions","organizations_url":"https://api.github.com/users/adamjv90/orgs","repos_url":"https://api.github.com/users/adamjv90/repos","events_url":"https://api.github.com/users/adamjv90/events{/privacy}","received_events_url":"https://api.github.com/users/adamjv90/received_events","type":"User","site_admin":false},"labels":[{"id":708993528,"url":"https://api.github.com/repos/aws/aws-amplify/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-06T15:04:39Z","updated_at":"2018-03-01T09:16:09Z","closed_at":null,"author_association":"NONE","body":"Is the access token automatically refreshed as documented here http://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html#amazon-cognito-user-pools-using-the-refresh-token . If so what is the recommended way of subscribing to refreshed access token? "},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/369527805","html_url":"https://github.com/aws/aws-amplify/issues/42#issuecomment-369527805","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/42","id":369527805,"user":{"login":"timotgl","id":366377,"avatar_url":"https://avatars0.githubusercontent.com/u/366377?v=4","gravatar_id":"","url":"https://api.github.com/users/timotgl","html_url":"https://github.com/timotgl","followers_url":"https://api.github.com/users/timotgl/followers","following_url":"https://api.github.com/users/timotgl/following{/other_user}","gists_url":"https://api.github.com/users/timotgl/gists{/gist_id}","starred_url":"https://api.github.com/users/timotgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotgl/subscriptions","organizations_url":"https://api.github.com/users/timotgl/orgs","repos_url":"https://api.github.com/users/timotgl/repos","events_url":"https://api.github.com/users/timotgl/events{/privacy}","received_events_url":"https://api.github.com/users/timotgl/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T09:16:09Z","updated_at":"2018-03-01T09:16:09Z","author_association":"NONE","body":"@mlabieniec Thanks for reopening the issue. Being notified when the token has changed would be perfect.\r\n\r\nhttps://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Auth/Auth.ts#L872 seems to suggest that the refresh happens when the token would expire in under 10 minutes? Does this require active use of the library or is it polling on its own with a set interval?"}}
{"actor":{"display_login":"timotgl"}}