import FingerprintJS from "@fingerprintjs/fingerprintjs";

export async function getDeviceId() {
  const fp = await FingerprintJS.load();
  const result = await fp.get();
  return result.visitorId; // Device ID duy nhất
}
