cvpilot-tool/apps/desktop/electron/core/auth.ts

9 lines
217 B
TypeScript
Raw Normal View History

2024-09-03 14:10:36 +08:00
import { machineIdSync } from "node-machine-id";
// Asyncronous call with async/await or Promise
export const getMachineId = async () => {
const id = await machineIdSync();
2024-09-06 14:27:41 +08:00
console.warn("机器码id: ", id);
2024-09-03 14:10:36 +08:00
};