(serviceName: string, account: string)
| 73 | ); |
| 74 | |
| 75 | const createEntry = (serviceName: string, account: string) => |
| 76 | Effect.flatMap(loadEntry(), (Entry) => |
| 77 | Effect.try({ |
| 78 | try: () => new Entry(serviceName, account), |
| 79 | catch: (cause) => |
| 80 | new KeychainError({ |
| 81 | message: "Failed creating keyring entry", |
| 82 | cause, |
| 83 | }), |
| 84 | }), |
| 85 | ); |
| 86 | |
| 87 | // --------------------------------------------------------------------------- |
| 88 | // Low-level keychain operations |
no test coverage detected