code: def on_expired(self):
          
  
          print('Authentication expired')
  
          # Authentication expired
          self.is_authenticating.acquire()
          self.is_authenticating.notify_all()
          self.is_authenticating.release()
docs: Device authentication expired.