Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2025-04-11 17:53:37 +01:00
parent f89339577e
commit a88f695390
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -101,8 +101,10 @@ export class Store extends ElectronStore<{
...(await keytar.findCredentials(KEYTAR_SERVICE)), ...(await keytar.findCredentials(KEYTAR_SERVICE)),
]; ];
for (const cred of credentials) { for (const cred of credentials) {
await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account); console.info("Store migration: writing", cred);
await this.setSecret(cred.account, cred.password); await this.setSecret(cred.account, cred.password);
console.info("Store migration: deleting", cred);
await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account);
} }
console.info(`Store migration done: found ${credentials.length} credentials`); console.info(`Store migration done: found ${credentials.length} credentials`);
} }