node-keychain icon indicating copy to clipboard operation
node-keychain copied to clipboard

What does a service correspond to in the Keychain?

Open gigantedocil opened this issue 3 years ago • 4 comments

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.

gigantedocil avatar Dec 22 '21 11:12 gigantedocil

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

ParundeepSingh avatar Jan 13 '23 17:01 ParundeepSingh

Unfortunately, no.

gigantedocil avatar Jan 13 '23 18:01 gigantedocil

Did you try the following?

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

ezintz avatar Apr 09 '23 07:04 ezintz

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.

ericmoret avatar Jan 18 '24 04:01 ericmoret