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

What does a service correspond to in the Keychain? #10

Open
gigantedocil opened this issue Dec 22, 2021 · 4 comments
Open

What does a service correspond to in the Keychain? #10

gigantedocil opened this issue Dec 22, 2021 · 4 comments

Comments

@gigantedocil
Copy link

gigantedocil commented Dec 22, 2021

Hello, I'm trying to access a password stored in my local keychain with this library. I keep getting the PasswordNotFound error and I think it is because I'm putting the wrong service. Thing is, I don't know what the service is since I've tried every value. What does the service correspond to in a keychain config?

image

So far I've tried the name, account and com.apple.keychainaccess but nothing works.

@ParundeepSingh
Copy link

@gigantedocil Were you able to identify what do we need to put in service ?

@gigantedocil
Copy link
Author

Unfortunately, no.

@ezintz
Copy link

ezintz commented Apr 9, 2023

Did you try the following?

{ account: '<field value of account>', service: '<field value of name>', type: 'internet' }

@ericmoret
Copy link

Running macOS Sonoma 14.2.1 and it appears that the type: 'internet' does not work. Not sure how to access a password from the iCloud keychain.

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