code: def _calculate_expires(self):
          
          self._backend_client.expires = None
  
          now = datetime.utcnow()
          self._backend_client.expires = now + timedelta(seconds=self._config.timeout)
docs: Calculates the session expiry using the timeout