Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def authenticate(self):
"""authenticate with uservoice by creating a client."""
if not hasattr(self, "client"):
self.client = uservoice.Client(
self.subdomain, self.api_key, self.api_secret
)