feat: move to secure OS credential storage so that you never get logged out again

This commit is contained in:
Simeon Radivoev 2026-02-10 00:35:37 +02:00
parent d6e0a8350a
commit ef08fa6114
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
15 changed files with 493 additions and 276 deletions

View file

@ -11,10 +11,10 @@ if (!Bun.env.PUBLIC_ACCESS)
bunServer = RunBunServer();
}
function cleanup ()
async function cleanup ()
{
bunServer?.stop();
api.apiServer.stop();
await api.apiServer.stop();
process.exit(0);
}
@ -25,7 +25,7 @@ try
});
webviewWorker.addEventListener('error', console.error);
await new Promise(resolve => webviewWorker.addEventListener('close', resolve));
cleanup();
await cleanup();
}
catch (error)
{