{"action":"opened","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1962","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1962/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1962/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1962/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/1962","id":372846773,"node_id":"MDU6SXNzdWUzNzI4NDY3NzM=","number":1962,"title":"Device not getting remembered after login from Cognito Hosted UI ","user":{"login":"noorahmed94","id":15702860,"node_id":"MDQ6VXNlcjE1NzAyODYw","avatar_url":"https://avatars3.githubusercontent.com/u/15702860?v=4","gravatar_id":"","url":"https://api.github.com/users/noorahmed94","html_url":"https://github.com/noorahmed94","followers_url":"https://api.github.com/users/noorahmed94/followers","following_url":"https://api.github.com/users/noorahmed94/following{/other_user}","gists_url":"https://api.github.com/users/noorahmed94/gists{/gist_id}","starred_url":"https://api.github.com/users/noorahmed94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noorahmed94/subscriptions","organizations_url":"https://api.github.com/users/noorahmed94/orgs","repos_url":"https://api.github.com/users/noorahmed94/repos","events_url":"https://api.github.com/users/noorahmed94/events{/privacy}","received_events_url":"https://api.github.com/users/noorahmed94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T07:28:11Z","updated_at":"2018-10-23T07:28:11Z","closed_at":null,"author_association":"NONE","body":"** Which Category is your question related to? **\r\nMy question is related to AWS Auth (Federation of Cognito User Pools). \r\n\r\n** What AWS Services are you utilizing? **\r\nI am using Amazon Hosted UI for social signin using React JS.\r\n\r\n** Provide additional details e.g. code snippets **\r\nI am using AWS Amplify's Hosted UI Feature for supporting Social Signin (Facebook and Google). The problem I am facing is that after the user get's authenticated and callback is received in my redirect URL, the user's device isn't getting registered on Cognito.\r\n\r\n```\r\nconstructor(props) {\r\n        super(props);\r\n        this.state = {\r\n            showErrorAlert: false,\r\n            alertMessage: \"\",\r\n        }\r\n        Hub.listen('auth', this);\r\n    }\r\n\r\n    onHubCapsule(capsule) {\r\n        const { channel, payload, source } = capsule;\r\n        if (channel === 'auth' && (payload.event === 'configured' || payload.event === 'signIn')) {\r\n            Auth.currentAuthenticatedUser()\r\n                .then(() => {\r\n                    this.initialze();\r\n                }).catch(() => { });\r\n        } else if (channel === 'auth' && (payload.event === 'configured' || payload.event === 'signOut')) {\r\n            this.onLogoutUser();\r\n        }\r\n    }\r\n\r\n    initialze = () => {\r\n           // redirect to authenticated page\r\n    }\r\n```\r\n"}}
{"actor":{"display_login":"noorahmed94"}}