feat: updates

This commit is contained in:
2026-01-13 00:47:04 +08:00
parent 16dfb14d25
commit 90daae20f2

View File

@@ -377,12 +377,6 @@ export function encodeBase64Url(input: ArrayBufferLike): string {
);
}
interface GetKeyRingResult {
service: string;
user: string;
password: string;
}
export function getKeyRingPassword(
service: string,
user: string,
@@ -401,7 +395,9 @@ export function getKeyRingPassword(
`keyring.rs -g failed, code: ${code}, stdout: ${stdoutString}, stderr: ${stderrString}`,
);
}
const result = JSON.parse(stdoutString) as GetKeyRingResult;
const result = JSON.parse(stdoutString) as {
password: string;
};
return result.password;
}