diff --git a/twilio/http/token_manager.py b/twilio/http/token_manager.py index 9500c5280..aab200399 100644 --- a/twilio/http/token_manager.py +++ b/twilio/http/token_manager.py @@ -5,7 +5,7 @@ class TokenManager: @classmethod def init(cls, grant_type: str, client_id: str, client_secret: str, code: str = None, redirect_uri: str = None, audience: str = None, refreshToken: str = None, scope: str = None, tokenManager: OrgTokenManager = None): - if tokenManager is not None: + if tokenManager is None: cls.org_token_manager = OrgTokenManager(grant_type, client_id, client_secret, code, redirect_uri, audience, refreshToken, scope) else: cls.org_token_manager = tokenManager