{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/793","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/793/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/793/events","html_url":"https://github.com/aws/aws-amplify/issues/793","id":320491130,"node_id":"MDU6SXNzdWUzMjA0OTExMzA=","number":793,"title":"OpenID - No current user session from `Auth.federatedSignIn`","user":{"login":"iAmUndefined","id":12405054,"node_id":"MDQ6VXNlcjEyNDA1MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/12405054?v=4","gravatar_id":"","url":"https://api.github.com/users/iAmUndefined","html_url":"https://github.com/iAmUndefined","followers_url":"https://api.github.com/users/iAmUndefined/followers","following_url":"https://api.github.com/users/iAmUndefined/following{/other_user}","gists_url":"https://api.github.com/users/iAmUndefined/gists{/gist_id}","starred_url":"https://api.github.com/users/iAmUndefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iAmUndefined/subscriptions","organizations_url":"https://api.github.com/users/iAmUndefined/orgs","repos_url":"https://api.github.com/users/iAmUndefined/repos","events_url":"https://api.github.com/users/iAmUndefined/events{/privacy}","received_events_url":"https://api.github.com/users/iAmUndefined/received_events","type":"User","site_admin":false},"labels":[{"id":845261099,"node_id":"MDU6TGFiZWw4NDUyNjEwOTk=","url":"https://api.github.com/repos/aws/aws-amplify/labels/Auth","name":"Auth","color":"bfdadc","default":false},{"id":772762686,"node_id":"MDU6TGFiZWw3NzI3NjI2ODY=","url":"https://api.github.com/repos/aws/aws-amplify/labels/investigating","name":"investigating","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-05T08:32:43Z","updated_at":"2018-06-01T17:05:53Z","closed_at":"2018-05-07T21:14:54Z","author_association":"NONE","body":"This issue is related to #580 - but is for OpenID.\r\n\r\n`Auth.currentCredentials()` (mentioned as a solution for #580) works well for Google. But it doesn't work for OpenID. Is this a bug? If not, can you please let me know what works for OpenID?\r\n\r\nIn my tests, `Auth.currentSession()` works for Cognito User Pool and `Auth.currentCredentials()` works for Google - but neither works for OpenID. \r\n\r\nBTW, `Auth.federatedSignIn` works well and logs in the user. Local storage gets `Identity ID` from AWS so that part works well for OpenID. But both `Auth.currentCredentials()` and `Auth.currentSession()` return null. Please advise, thanks!"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/393945357","html_url":"https://github.com/aws/aws-amplify/issues/793#issuecomment-393945357","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/793","id":393945357,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzk0NTM1Nw==","user":{"login":"powerful23","id":11042868,"node_id":"MDQ6VXNlcjExMDQyODY4","avatar_url":"https://avatars1.githubusercontent.com/u/11042868?v=4","gravatar_id":"","url":"https://api.github.com/users/powerful23","html_url":"https://github.com/powerful23","followers_url":"https://api.github.com/users/powerful23/followers","following_url":"https://api.github.com/users/powerful23/following{/other_user}","gists_url":"https://api.github.com/users/powerful23/gists{/gist_id}","starred_url":"https://api.github.com/users/powerful23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerful23/subscriptions","organizations_url":"https://api.github.com/users/powerful23/orgs","repos_url":"https://api.github.com/users/powerful23/repos","events_url":"https://api.github.com/users/powerful23/events{/privacy}","received_events_url":"https://api.github.com/users/powerful23/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T17:05:53Z","updated_at":"2018-06-01T17:05:53Z","author_association":"CONTRIBUTOR","body":"@kanteankit since Amplify will automatically refresh the jwt token from Facebook or Google, or you can also provide a refresh handler yourself, the user will always have a credentials to use your AWS resources. So if you don't want the user stayed logged in forever, you need to develop your own logic to sign the user out."}}
{"actor":{"display_login":"powerful23"}}