const MAX_DEVICE_ATTEMPTS: u32 = 2;
How many times the server may send us back to register or reauthorize the device before we give up. One round is the normal case.