{"action":"created","issue":{"url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/3","repository_url":"https://api.github.com/repos/morcmarc/react-native-cognito","labels_url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/3/comments","events_url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/3/events","html_url":"https://github.com/morcmarc/react-native-cognito/pull/3","id":136222173,"number":3,"title":"Replaced NSError in callback with NSDictionary","user":{"login":"timothytripp","id":149899,"avatar_url":"https://avatars.githubusercontent.com/u/149899?v=3","gravatar_id":"","url":"https://api.github.com/users/timothytripp","html_url":"https://github.com/timothytripp","followers_url":"https://api.github.com/users/timothytripp/followers","following_url":"https://api.github.com/users/timothytripp/following{/other_user}","gists_url":"https://api.github.com/users/timothytripp/gists{/gist_id}","starred_url":"https://api.github.com/users/timothytripp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothytripp/subscriptions","organizations_url":"https://api.github.com/users/timothytripp/orgs","repos_url":"https://api.github.com/users/timothytripp/repos","events_url":"https://api.github.com/users/timothytripp/events{/privacy}","received_events_url":"https://api.github.com/users/timothytripp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T23:25:30Z","updated_at":"2016-03-02T18:37:36Z","closed_at":"2016-03-02T18:34:10Z","pull_request":{"url":"https://api.github.com/repos/morcmarc/react-native-cognito/pulls/3","html_url":"https://github.com/morcmarc/react-native-cognito/pull/3","diff_url":"https://github.com/morcmarc/react-native-cognito/pull/3.diff","patch_url":"https://github.com/morcmarc/react-native-cognito/pull/3.patch"},"body":"Returning an NSError (task.error) in the callback was causing the\r\nfollowing error:\r\nRCTJSONStringify() encountered the following error: Invalid type in\r\nJSON write (NSError) in RCTUtils.m (react-native v0.20.0).  In\r\nreact-native 0.18.0 a SIGABT signal was raised.  Since JSON can’t parse\r\nan NSError, the contents of the NSError are first converted to an\r\nNSDictionary which JSONStringify can process correctly.  For\r\nconvenience, the localizedDescription is also added to the dictionary\r\n(it’s also usually present in the userInfo.localizedDescription value,\r\nbut userInfo can be null)"},"comment":{"url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/comments/191364576","html_url":"https://github.com/morcmarc/react-native-cognito/pull/3#issuecomment-191364576","issue_url":"https://api.github.com/repos/morcmarc/react-native-cognito/issues/3","id":191364576,"user":{"login":"morcmarc","id":593238,"avatar_url":"https://avatars.githubusercontent.com/u/593238?v=3","gravatar_id":"","url":"https://api.github.com/users/morcmarc","html_url":"https://github.com/morcmarc","followers_url":"https://api.github.com/users/morcmarc/followers","following_url":"https://api.github.com/users/morcmarc/following{/other_user}","gists_url":"https://api.github.com/users/morcmarc/gists{/gist_id}","starred_url":"https://api.github.com/users/morcmarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morcmarc/subscriptions","organizations_url":"https://api.github.com/users/morcmarc/orgs","repos_url":"https://api.github.com/users/morcmarc/repos","events_url":"https://api.github.com/users/morcmarc/events{/privacy}","received_events_url":"https://api.github.com/users/morcmarc/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T18:37:36Z","updated_at":"2016-03-02T18:37:36Z","body":"Thanks for the pull request. I'll do a release tomorrow."}}