Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[local-authentication] Fix crash when NSFaceIDUsageDescription is not provided and device fallback is disabled #8595

Merged
merged 4 commits into from
Jun 1, 2020

Conversation

tsapeta
Copy link
Member

@tsapeta tsapeta commented Jun 1, 2020

Why

During QA I encountered that our expo-local-authentication example in native-component-list crashes when NSFaceIDUsageDescription is not provided in Info.plist and disableDeviceFallback is set to true. It was probably introduced by #8219.

How

If device fallback is disabled and NSFaceIDUsageDescription is not specified then automatically resolve with no success and appropriate error code and warning message. Also refactored the example a little bit so it's easier to test and supports both types of authentication (with and without device fallback).

Test Plan

Tested on NCL ✅

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2020

Native Component List for this branch is ready

@tsapeta tsapeta merged commit 6729019 into master Jun 1, 2020
@tsapeta tsapeta deleted the @tsapeta/qa/face-id-crash branch June 1, 2020 18:38
tsapeta added a commit that referenced this pull request Jun 1, 2020
…ot provided and device fallback is disabled (#8595)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants