Files
hydra/src/main/events/user/get-auth.ts
Chubby Granny Chaser a32fdf3385 style: using fs promises
2025-03-09 19:28:47 +00:00

12 lines
307 B
TypeScript

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