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

Understanding the key store access life cycle. #636

Open
clauderobi opened this issue May 18, 2024 · 0 comments
Open

Understanding the key store access life cycle. #636

clauderobi opened this issue May 18, 2024 · 0 comments

Comments

@clauderobi
Copy link

I am trying to diagnose an issue with my app in dealing with the key store. I will not go into the details because this is not the point of this Issues.

To understand what is happening I added console.log statements at critical steps, including when my module (the one, and only one importing react-native-keychain), is first loaded. That specific log is even before any import statement. To my surprise, the authentication prompt is given to the user even before my module is loaded. This raised a few questions

  • why is the authentication prompt is given even if nothing (on my part) is asking for access to the keystore
  • where is the prompt content coming from. The prompt is clearly from my code and not a system default
  • What if I really really really wanted my app to be fully initialized before any user interaction takes place?

In all likelihood, it the react-native-keychain Java binding that is doing some magic. Without trying to speculate if it is true, is it fair to say that such magic, if indeed it is true, should be documented? And, it should also be parametrize with at least an on/off flag.

Or I have it all wrong......

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

No branches or pull requests

1 participant