def auth_assert(cls, *args, **kwargs): result = cls.auth(*args, **kwargs) if not result: raise netius.SecurityError("Invalid authentication")
def auth_assert_i(self, *args, **kwargs): result = self.auth_i(*args, **kwargs) if not result: raise netius.SecurityError("Invalid authentication")