You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module adds methods for basic Keychain access in Node.js by way of the `security` command-line tool.
5
5
@@ -45,6 +45,9 @@ The available
45
45
keychain.setPassword(options[, callback]);
46
46
keychain.getPassword(options, callback);
47
47
keychain.deletePassword(options[, callback]);
48
+
keychain.createKeychain(options[, callback]);
49
+
keychain.deleteKeychain(options[, callback]);
50
+
keychain.setDefaultKeychain(options[, callback]);
48
51
```
49
52
50
53
### Options
@@ -57,6 +60,7 @@ Available params you can pass to the options object:
57
60
|`service`| Specify service name (required) |
58
61
|`password`| Specify password to be added (required for `setPassword`) |
59
62
|`type`| The type of password to get or save. Supported values are `generic` and `internet`. See [docs](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/security.1.html). Default: `generic`|
63
+
|`keychainName`| Specify the name of the keychain (required for 'createKeychain' and 'deleteKeychain') |
0 commit comments