{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/249","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/249/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/249/events","html_url":"https://github.com/aws/aws-amplify/issues/249","id":295425885,"number":249,"title":"Auth.currentUserInfo() not returning cognitoIdentityId","user":{"login":"Darkade","id":4106546,"avatar_url":"https://avatars1.githubusercontent.com/u/4106546?v=4","gravatar_id":"","url":"https://api.github.com/users/Darkade","html_url":"https://github.com/Darkade","followers_url":"https://api.github.com/users/Darkade/followers","following_url":"https://api.github.com/users/Darkade/following{/other_user}","gists_url":"https://api.github.com/users/Darkade/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkade/subscriptions","organizations_url":"https://api.github.com/users/Darkade/orgs","repos_url":"https://api.github.com/users/Darkade/repos","events_url":"https://api.github.com/users/Darkade/events{/privacy}","received_events_url":"https://api.github.com/users/Darkade/received_events","type":"User","site_admin":false},"labels":[{"id":772762686,"url":"https://api.github.com/repos/aws/aws-amplify/labels/investigating","name":"investigating","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-08T08:38:35Z","updated_at":"2018-02-11T19:59:57Z","closed_at":null,"author_association":"NONE","body":"Since updating to `\"aws-amplify-react-native\": \"^0.2.2\"` running `Auth.currentUserInfo()` is not returning the `cognitoIdentityId` it just says `id: undefined`\r\n\r\n```\r\n{ id: undefined,\r\nusername: 'ivan2',\r\nattributes:\r\n{ email_verified: true,\r\nphone_number_verified: false,\r\nphone_number: '+555555555555',\r\nemail: '*********@gmail.com' } }\r\n```\r\n\r\nWe are using this function to get the userInfo on login, then we store it to user storage, as suggested here https://github.com/aws/aws-amplify/issues/54#issuecomment-360958293\r\n\r\nIs this still the correct function to get the cognitoId? What should we be using?\r\n\r\n-----\r\n\r\nEDIT: I meant `currentUserInfo`  _[ Sorry, I guess I shound't write issues at 2am 😆  ]_\r\nStill, the function is returning `id: undefined`\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/364782648","html_url":"https://github.com/aws/aws-amplify/issues/249#issuecomment-364782648","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/249","id":364782648,"user":{"login":"kevaundray","id":26017479,"avatar_url":"https://avatars0.githubusercontent.com/u/26017479?v=4","gravatar_id":"","url":"https://api.github.com/users/kevaundray","html_url":"https://github.com/kevaundray","followers_url":"https://api.github.com/users/kevaundray/followers","following_url":"https://api.github.com/users/kevaundray/following{/other_user}","gists_url":"https://api.github.com/users/kevaundray/gists{/gist_id}","starred_url":"https://api.github.com/users/kevaundray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevaundray/subscriptions","organizations_url":"https://api.github.com/users/kevaundray/orgs","repos_url":"https://api.github.com/users/kevaundray/repos","events_url":"https://api.github.com/users/kevaundray/events{/privacy}","received_events_url":"https://api.github.com/users/kevaundray/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T19:59:57Z","updated_at":"2018-02-11T19:59:57Z","author_association":"NONE","body":"import { Auth } from 'aws-amplify';\r\n\r\nasync componentDidMount() {\r\n    let user = await Auth.currentAuthenticatedUser();\r\n    console.log(user);\r\n\r\n  // get jwt Token\r\n       let jwtToken = Auth.currentSession().then(function(result) {\r\n         console.log(result);\r\n    });;\r\n }\r\n\r\nThis is what worked for me. Remove the part about jwt token if you do not need"}}
{"actor":{"display_login":"kevaundray"}}