feat: adding automatic cloud sync

This commit is contained in:
Chubby Granny Chaser
2025-03-09 19:14:24 +00:00
parent 886e176b08
commit ed699a8dee
19 changed files with 275 additions and 96 deletions

View File

@@ -0,0 +1,11 @@
import type { Auth } from "@types";
import { registerEvent } from "../register-event";
import { db, levelKeys } from "@main/level";
const getAuth = async (_event: Electron.IpcMainInvokeEvent) =>
db.get<string, Auth>(levelKeys.auth, {
valueEncoding: "json",
});
registerEvent("getAuth", getAuth);