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

[expo-secure-store] Fix keychainAccessible behavior #6291

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

sjchmiela
Copy link
Contributor

Why

Fixes #5561.

How

Debugging step-by-step I saw that value for keychainAccessible key in the options map is 3 and still we try to run it through constantsToExport lookup.

Test Plan

I have confirmed that with this fix applied getting the value right after setting it on a passcode-disabled device always returns null and getting the value after setting it on a passcode-enabled device returns the value.

@sjchmiela sjchmiela requested a review from cruzach November 15, 2019 21:27
@cruzach
Copy link
Contributor

cruzach commented Nov 15, 2019

Awesome 🎉

Did you test setting the value on a device with the passcode enabled, then disabling the passcode, and making sure null is returned for that key?

@sjchmiela
Copy link
Contributor Author

Exactly!

@sjchmiela sjchmiela merged commit 71e0bca into master Nov 15, 2019
@sjchmiela sjchmiela deleted the @sjchmiela/fix_keychainaccessible branch November 15, 2019 21:52
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.

[SecureStore] Changing passcode does not remove SecureStore entries or prevent from setting entries
2 participants