mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-28 21:57:13 +02:00
feat: scaffold electron orchestrator foundation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import keytar from 'keytar';
|
||||
|
||||
const serviceName = 'kopaya';
|
||||
|
||||
export class SecretStore {
|
||||
async get(account: string): Promise<string | null> {
|
||||
return keytar.getPassword(serviceName, account);
|
||||
}
|
||||
|
||||
async set(account: string, secret: string): Promise<void> {
|
||||
await keytar.setPassword(serviceName, account, secret);
|
||||
}
|
||||
|
||||
async delete(account: string): Promise<boolean> {
|
||||
return keytar.deletePassword(serviceName, account);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user