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

How to store my password keychain in icloud using react-native-keychain #375

Open
manojkumarpri opened this issue Jul 21, 2020 · 3 comments

Comments

@manojkumarpri
Copy link

i tried basic setup like
await Keychain.setGenericPassword(
this.state.username,
this.state.password,
{
accessControl: this.state.accessControl,
securityLevel: this.state.securityLevel,
storage: this.state.storageSelection,
}
);
//the popup not raising

@hieuvh3011
Copy link

hieuvh3011 commented Sep 30, 2020

Because you are using the wrong function. Try this:

const {username, password} = this.state;
Keychain.setSharedWebCredentials(webCredentials, username, password)
    .then(()=>{
        //implement logic when success here
     })
     .catch((error)=>{
        //implement logic when fail here
     });

@gabimoncha
Copy link

@hieuvh3011 I tried the same thing but I get the same error as you reported in issue #402

@m-ruhl
Copy link

m-ruhl commented Aug 13, 2021

This is only possible with a kSecAttrSynchronizable-flag, unfortunately this is not implemented by the plugin #156

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

4 participants