Skip to content

Commit

Permalink
Organization api uptake changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 11, 2024
1 parent e9eaa72 commit 1c8420c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twilio/auth_strategy/token_auth_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1c8420c

Please sign in to comment.