Preprocess the device token