{"action":"closed","issue":{"url":"https://api.github.com/repos/layerhq/Atlas-Messenger-iOS/issues/172","labels_url":"https://api.github.com/repos/layerhq/Atlas-Messenger-iOS/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Messenger-iOS/issues/172/comments","events_url":"https://api.github.com/repos/layerhq/Atlas-Messenger-iOS/issues/172/events","html_url":"https://github.com/layerhq/Atlas-Messenger-iOS/issues/172","id":59314610,"number":172,"title":"Auth error","user":{"login":"k1vrA","id":5331145,"avatar_url":"https://avatars.githubusercontent.com/u/5331145?v=3","gravatar_id":"","url":"https://api.github.com/users/k1vrA","html_url":"https://github.com/k1vrA","followers_url":"https://api.github.com/users/k1vrA/followers","following_url":"https://api.github.com/users/k1vrA/following{/other_user}","gists_url":"https://api.github.com/users/k1vrA/gists{/gist_id}","starred_url":"https://api.github.com/users/k1vrA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k1vrA/subscriptions","organizations_url":"https://api.github.com/users/k1vrA/orgs","repos_url":"https://api.github.com/users/k1vrA/repos","events_url":"https://api.github.com/users/k1vrA/events{/privacy}","received_events_url":"https://api.github.com/users/k1vrA/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T00:32:05Z","updated_at":"2015-03-11T22:37:24Z","closed_at":"2015-03-11T22:37:24Z","body":"Hello guys! I have some troubles with auth.\r\n\r\nAt this point\r\n\r\n```\r\n        NSLog(@\"Registering user\");\r\n        [self.applicationController.APIManager registerUserWithName:name nonce:nonce completion:^(NSString *identityToken, NSError *error) {\r\n            NSLog(@\"User registerd and got identity token: %@\", identityToken);\r\n            if (error) {\r\n                ATLMAlertWithError(error);\r\n                return;\r\n            }\r\n```\r\n\r\nI have this response in registerUserWithName method\r\n\r\n```\r\n\r\n<NSHTTPURLResponse: 0x7fc811b00f40> { URL: https://layer-identity-provider.herokuapp.com/apps/97C86162-BE4B-11E4-9959-121E260019CD/atlas_identities } { status code: 422, headers {\r\n    Connection = \"keep-alive\";\r\n    \"Content-Length\" = 1334;\r\n    \"Content-Type\" = \"text/html; charset=utf-8\";\r\n    Date = \"Sat, 28 Feb 2015 00:17:47 GMT\";\r\n    Server = Cowboy;\r\n    Status = \"422 Unprocessable Entity\";\r\n    Via = \"1.1 vegur\";\r\n    \"X-Request-Id\" = \"6ed33e94-fd02-4106-ae1c-696319affab3\";\r\n    \"X-Runtime\" = \"0.012798\";\r\n} }\r\n\r\n```\r\n\r\nAfter this response i see this warning :(\r\n\r\n![screen shot 2015-02-28 at 3 29 23 am](https://cloud.githubusercontent.com/assets/5331145/6423632/088a1d06-befa-11e4-8909-d7767c693ff1.png)\r\n\r\n\r\n"}}