cvpilot-tool/apps/desktop/electron/core/auth.ts
2024-09-10 22:03:12 +08:00

9 lines
214 B
TypeScript

import { machineIdSync } from "node-machine-id";
// Asyncronous call with async/await or Promise
export const getMachineId = async () => {
const id = await machineIdSync();
console.warn("machineId:", id);
};