From 1c8420c193663e06f070b3cdb82ee9015f725bbc Mon Sep 17 00:00:00 2001 From: AsabuHere Date: Wed, 11 Dec 2024 22:43:39 +0530 Subject: [PATCH] Organization api uptake changes --- twilio/auth_strategy/token_auth_strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio/auth_strategy/token_auth_strategy.py b/twilio/auth_strategy/token_auth_strategy.py index 0c60f9a06..1989f4b57 100644 --- a/twilio/auth_strategy/token_auth_strategy.py +++ b/twilio/auth_strategy/token_auth_strategy.py @@ -26,7 +26,7 @@ def requires_authentication(self) -> bool: def fetch_token(self): if self.token is None or self.token == "" or self.is_token_expired(self.token): - # with self.lock: + with self.lock: if self.token is None or self.token == "" or self.is_token_expired(self.token): self.logger.info("New token fetched for accessing organization API") self.token = self.token_manager.fetch_access_token()