code: def devices(self):
          
          self.verify_integrity()
  
          if session.get('u2f_device_management_authorized', False):
              if request.method == 'GET':
                  return jsonify(self.get_devices()), 200
  
              elif request.method == 'DELETE':
                  response = self.remove_device(request.json)
  
                  if response['status'] == 'ok':
                      return jsonify(response), 200
                  else:
                      return jsonify(response), 404
  
          return jsonify({'status': 'failed', 'error': 'Unauthorized!'}), 401
docs: Manages users enrolled u2f devices