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

feat: hasGenericPassword #642

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

DorianMazur
Copy link
Collaborator

@DorianMazur DorianMazur commented Jun 24, 2024

Description

This new function hasGenericPasswordForOptions for both iOS and Android platforms. This function checks if a generic password exists for a given service and returns a Promise.

Motivation and Context

In some applications, it's crucial to verify the existence of data in the Keychain (iOS) or Shared Preferences (Android) before attempting to access it (for example when you store encryption key to decrypt the data) This function provides a convenient way to perform this check, similar to the existing hasInternetCredentials function.

Also it should help to solve the issue #135 & #533
We will have a way to determine if the data is in Keychain.

How Has This Been Tested?

Manually tested in a real React Native project on iOS & Android.

@DorianMazur DorianMazur requested a review from oblador August 26, 2024 12:07
@DorianMazur DorianMazur merged commit ccda1e8 into oblador:master Sep 16, 2024
7 checks passed
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.

1 participant