{"action":"created","issue":{"url":"https://api.github.com/repos/square/Valet/issues/67","labels_url":"https://api.github.com/repos/square/Valet/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/square/Valet/issues/67/comments","events_url":"https://api.github.com/repos/square/Valet/issues/67/events","html_url":"https://github.com/square/Valet/issues/67","id":127078315,"number":67,"title":"Differentiate between user cancel and deleted keychain item in VALSecureEnclaveValet.","user":{"login":"nijindal","id":1015178,"avatar_url":"https://avatars.githubusercontent.com/u/1015178?v=3","gravatar_id":"","url":"https://api.github.com/users/nijindal","html_url":"https://github.com/nijindal","followers_url":"https://api.github.com/users/nijindal/followers","following_url":"https://api.github.com/users/nijindal/following{/other_user}","gists_url":"https://api.github.com/users/nijindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nijindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijindal/subscriptions","organizations_url":"https://api.github.com/users/nijindal/orgs","repos_url":"https://api.github.com/users/nijindal/repos","events_url":"https://api.github.com/users/nijindal/events{/privacy}","received_events_url":"https://api.github.com/users/nijindal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/Valet/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-17T06:43:30Z","updated_at":"2016-01-19T17:57:53Z","closed_at":null,"body":"I am using `VALSecureEnclaveValet` for storing some sensitive data.\r\n\r\nMy app needs to behave differently for use-case when user cancels the popup and when user disables PIN and then re-enables it.\r\n\r\nSince VALSecureEnclaveValet's `objectForKey:userPrompt:` returns nil for both the cases, how do I differentiate?"},"comment":{"url":"https://api.github.com/repos/square/Valet/issues/comments/172933934","html_url":"https://github.com/square/Valet/issues/67#issuecomment-172933934","issue_url":"https://api.github.com/repos/square/Valet/issues/67","id":172933934,"user":{"login":"dfed","id":139364,"avatar_url":"https://avatars.githubusercontent.com/u/139364?v=3","gravatar_id":"","url":"https://api.github.com/users/dfed","html_url":"https://github.com/dfed","followers_url":"https://api.github.com/users/dfed/followers","following_url":"https://api.github.com/users/dfed/following{/other_user}","gists_url":"https://api.github.com/users/dfed/gists{/gist_id}","starred_url":"https://api.github.com/users/dfed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfed/subscriptions","organizations_url":"https://api.github.com/users/dfed/orgs","repos_url":"https://api.github.com/users/dfed/repos","events_url":"https://api.github.com/users/dfed/events{/privacy}","received_events_url":"https://api.github.com/users/dfed/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T17:57:53Z","updated_at":"2016-01-19T17:57:53Z","body":"I assume you're looking at `copyMatchingAsync` and seeing the message created on line 70 of  `AAPLKeychainTestsViewController.m`. My initial guess is that Keychain tells them `ItemNotFound` because they have user authentication (i.e. Touch ID) to check the secure enclave. `VALSecureEnclaveValet`'s `containsObjectForKey:` does not use customer authentication, so it looks like we're just being told the wrong thing by Keychain in this case. Investigating."}}