node-keytar
node-keytar copied to clipboard
return service also in "findCredentials"
"findCredentials" method performs a wildcard search on all service entries. So, with the result array {account, password} it is impossible to determine which service is it referring to. It would be better if it returns array {service, account, password}.
More details: My app supports adding multiple credentials with a prefix like "my-app:service1", "my-app:service2" and so on. So when I call findCredentials("my-app"), it returns all the entries for my-app but I am unable to determine which result entry is referring to which service. This can be solved if method returns {service, account, password} instead of just {account, password}.
Marking this as help-wanted because I think this is some low-hanging fruit for someone to contribute:
This can be solved if method returns
{service, account, password}instead of just{account, password}.
It looks like windows is the only platform that performs a wildcard search. So @shiftkey , for mac and linux, all results should have the same service, right?