Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _cognito(self, **kwargs):
"""Get the client credentials."""
return pycognito.Cognito(
user_pool_id=self.cloud.user_pool_id,
client_id=self.cloud.cognito_client_id,
user_pool_region=self.cloud.region,
botocore_config=botocore.config.Config(signature_version=botocore.UNSIGNED),
session=self._session,
**kwargs,
)