src/lib/mobile-login.js
async function generateMachineKey () {
  let parts = await Promise.all([
    randomHex(8),
    randomHex(4),
    randomHex(4),
    randomHex(4),
    randomHex(12)
  ])
  return `${parts[0]}-${parts[1]}-${parts[2]}-${parts[3]}-${parts[4]}`
}
async function generateMachineKey () {
  let parts = await Promise.all([
    randomHex(8),
    randomHex(4),
    randomHex(4),
    randomHex(4),
    randomHex(12)
  ])
  return `${parts[0]}-${parts[1]}-${parts[2]}-${parts[3]}-${parts[4]}`
}
async function generateMachineKey ( ) { let parts = await Promise . all ( [ randomHex ( 8 ) , randomHex ( 4 ) , randomHex ( 4 ) , randomHex ( 4 ) , randomHex ( 12 ) ] ) return ` ${ parts [ 0 ] } ${ parts [ 1 ] } ${ parts [ 2 ] } ${ parts [ 3 ] } ${ parts [ 4 ] } ` }
example EEA58055-E4E8-42E6-B89D-DFFBBD37AF57
example EEA58055 - E4E8 - 42E6 - B89D - DFFBBD37AF57