{"action":"created","issue":{"url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/2","repository_url":"https://api.github.com/repos/alanraso/react-native-touch-id","labels_url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/2/comments","events_url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/2/events","html_url":"https://github.com/alanraso/react-native-touch-id/pull/2","id":382184695,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxOTQ5NDYx","number":2,"title":"Add index.d.ts and improve passcode fallback behaviour","user":{"login":"alanraso","id":6992731,"node_id":"MDQ6VXNlcjY5OTI3MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6992731?v=4","gravatar_id":"","url":"https://api.github.com/users/alanraso","html_url":"https://github.com/alanraso","followers_url":"https://api.github.com/users/alanraso/followers","following_url":"https://api.github.com/users/alanraso/following{/other_user}","gists_url":"https://api.github.com/users/alanraso/gists{/gist_id}","starred_url":"https://api.github.com/users/alanraso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanraso/subscriptions","organizations_url":"https://api.github.com/users/alanraso/orgs","repos_url":"https://api.github.com/users/alanraso/repos","events_url":"https://api.github.com/users/alanraso/events{/privacy}","received_events_url":"https://api.github.com/users/alanraso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alanraso","id":6992731,"node_id":"MDQ6VXNlcjY5OTI3MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6992731?v=4","gravatar_id":"","url":"https://api.github.com/users/alanraso","html_url":"https://github.com/alanraso","followers_url":"https://api.github.com/users/alanraso/followers","following_url":"https://api.github.com/users/alanraso/following{/other_user}","gists_url":"https://api.github.com/users/alanraso/gists{/gist_id}","starred_url":"https://api.github.com/users/alanraso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanraso/subscriptions","organizations_url":"https://api.github.com/users/alanraso/orgs","repos_url":"https://api.github.com/users/alanraso/repos","events_url":"https://api.github.com/users/alanraso/events{/privacy}","received_events_url":"https://api.github.com/users/alanraso/received_events","type":"User","site_admin":false},"assignees":[{"login":"alanraso","id":6992731,"node_id":"MDQ6VXNlcjY5OTI3MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6992731?v=4","gravatar_id":"","url":"https://api.github.com/users/alanraso","html_url":"https://github.com/alanraso","followers_url":"https://api.github.com/users/alanraso/followers","following_url":"https://api.github.com/users/alanraso/following{/other_user}","gists_url":"https://api.github.com/users/alanraso/gists{/gist_id}","starred_url":"https://api.github.com/users/alanraso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanraso/subscriptions","organizations_url":"https://api.github.com/users/alanraso/orgs","repos_url":"https://api.github.com/users/alanraso/repos","events_url":"https://api.github.com/users/alanraso/events{/privacy}","received_events_url":"https://api.github.com/users/alanraso/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-19T12:04:21Z","updated_at":"2018-12-12T04:30:06Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/alanraso/react-native-touch-id/pulls/2","html_url":"https://github.com/alanraso/react-native-touch-id/pull/2","diff_url":"https://github.com/alanraso/react-native-touch-id/pull/2.diff","patch_url":"https://github.com/alanraso/react-native-touch-id/pull/2.patch"},"body":"+ Add `index.d.ts` - imported from [this](https://github.com/naoufal/react-native-touch-id/pull/178) PR\r\n+ Change native iOS `authenticate` method with the following behaviour:\r\n  + If `passcodeFallback` field option is set to `true`: asks for [default authentication](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthentication?language=objc) method of iOS. This generally is TouchID, with option to use passcode.\r\n  + If `passcodeFallback` field option `false` (default): asks [only for TouchID or FaceID](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthenticationwithbiometrics?language=objc), failing if not supported.\r\n+ Change default error callback in case `canEvaluatePolicy` is false to `handleAttemptToUseDeviceIDWithSuccess` method instead of `RCTTouchIDNotSupported`. This was causing problems, for example, if either TouchID/FaceID and passcode were not set. I think the error returned should be `LAErrorPasscodeNotSet` (if passcodeFallback enabled) or `LAErrorTouchIDNotEnrolled` (if passcodeFallback disabled)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/comments/446458340","html_url":"https://github.com/alanraso/react-native-touch-id/pull/2#issuecomment-446458340","issue_url":"https://api.github.com/repos/alanraso/react-native-touch-id/issues/2","id":446458340,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ1ODM0MA==","user":{"login":"zachrnolan","id":66614,"node_id":"MDQ6VXNlcjY2NjE0","avatar_url":"https://avatars0.githubusercontent.com/u/66614?v=4","gravatar_id":"","url":"https://api.github.com/users/zachrnolan","html_url":"https://github.com/zachrnolan","followers_url":"https://api.github.com/users/zachrnolan/followers","following_url":"https://api.github.com/users/zachrnolan/following{/other_user}","gists_url":"https://api.github.com/users/zachrnolan/gists{/gist_id}","starred_url":"https://api.github.com/users/zachrnolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachrnolan/subscriptions","organizations_url":"https://api.github.com/users/zachrnolan/orgs","repos_url":"https://api.github.com/users/zachrnolan/repos","events_url":"https://api.github.com/users/zachrnolan/events{/privacy}","received_events_url":"https://api.github.com/users/zachrnolan/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T04:30:06Z","updated_at":"2018-12-12T04:30:06Z","author_association":"NONE","body":"@alanraso will the modal still show \"Enter Password\" after two failed FaceID/TouchID attempts?"}}
{"actor":{"display_login":"zachrnolan"}}