Function useDeviceId

Returns the current device ID. A device ID is a unique GUID that is stored in local storage.

const deviceId = useDeviceId();

console.log("My device ID is:", deviceId);