diff --git a/README.md b/README.md index dc0964c7..c10a88c8 100644 --- a/README.md +++ b/README.md @@ -68,18 +68,19 @@ Delete the stored password for the `service` and `account`. Yields `true` if a password was deleted, or `false` if an entry with the given service and account was not found. -### findPassword(service) +### findCredentials(service) -Find a password for the `service` in the keychain. +Find all accounts and password for the `service` in the keychain. `service` - The string service name. -Yields the string password, or `null` if an entry for the given service and account was not found. +Yields an array of `{ account: 'foo', password: 'bar' }`. -### findCredentials(service) +### findPassword(service) -Find all accounts and password for the `service` in the keychain. +Find a password for the `service` in the keychain. This is ideal for scenarios where an `account` is not required. `service` - The string service name. -Yields an array of `{ account: 'foo', password: 'bar' }`. +Yields the string password, or `null` if an entry for the given service was not found. +