mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 01:03:57 +00:00
12 lines
307 B
TypeScript
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);
|