{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/977","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/977/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/977/events","html_url":"https://github.com/aws/aws-amplify/issues/977","id":329214141,"node_id":"MDU6SXNzdWUzMjkyMTQxNDE=","number":977,"title":"aws-amplify-react does not verify contact information after \"challenged\" login","user":{"login":"youngbob","id":2251274,"node_id":"MDQ6VXNlcjIyNTEyNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2251274?v=4","gravatar_id":"","url":"https://api.github.com/users/youngbob","html_url":"https://github.com/youngbob","followers_url":"https://api.github.com/users/youngbob/followers","following_url":"https://api.github.com/users/youngbob/following{/other_user}","gists_url":"https://api.github.com/users/youngbob/gists{/gist_id}","starred_url":"https://api.github.com/users/youngbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngbob/subscriptions","organizations_url":"https://api.github.com/users/youngbob/orgs","repos_url":"https://api.github.com/users/youngbob/repos","events_url":"https://api.github.com/users/youngbob/events{/privacy}","received_events_url":"https://api.github.com/users/youngbob/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":708993526,"node_id":"MDU6TGFiZWw3MDg5OTM1MjY=","url":"https://api.github.com/repos/aws/aws-amplify/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T20:57:36Z","updated_at":"2018-06-06T19:00:23Z","closed_at":null,"author_association":"NONE","body":"#### Do you want to request a feature or report a bug?\r\n\r\nBug.\r\n\r\n#### What is the current behavior?\r\n\r\nIf the user signs in and there is no \"challenge\" (such as `NEW_PASSWORD_REQUIRED` or `SMS_MFA`), the `SignIn` component will then call `Auth.verifiedContact(user)`, which will optionally move the state to `verifyContact` and seems to have the side effect of setting `attributes` on the authData/user. If the state instead changes to `requireNewPassword`, `confirmSignIn`, or `TOTPSetup` first, then the state transitions to `signedIn` (after challenge completion) without ever calling `verifyContact`. The user data set on `authData` does not have any `attributes` set either, though they are available on `authData.challengeParam.userAttributes`.\r\n\r\n#### What is the expected behavior?\r\n\r\nEach challenge step that moves the state to `signedIn` should first check the contact information like the `SignIn` component does. Once the user is signedIn, the user attributes should be set on the authData.\r\n\r\n#### Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?\r\n\r\naws-amplify-react 0.1.47\r\n\r\n#### You can turn on the debug mode to provide more info for us by setting ```window.LOG_LEVEL = 'DEBUG';``` in your app.\r\n\r\nGood to know, thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/395177973","html_url":"https://github.com/aws/aws-amplify/issues/977#issuecomment-395177973","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/977","id":395177973,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE3Nzk3Mw==","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-06T19:00:23Z","updated_at":"2018-06-06T19:00:23Z","author_association":"CONTRIBUTOR","body":"Hi I just include the fix in another pr which also fix other issues around `verifyContact` component."}}
{"actor":{"display_login":"powerful23"}}