feat: move to secure OS credential storage so that you never get logged out again
This commit is contained in:
parent
d6e0a8350a
commit
ef08fa6114
15 changed files with 493 additions and 276 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue