Skip to content

Commit

Permalink
chore: oauth sdk implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Jul 6, 2024
1 parent 26fd590 commit f429196
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions twilio/http/token_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ class TokenManager:
org_token_manager = None

@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):
cls.org_token_manager = OrgTokenManager(grant_type, client_id, client_secret, code, redirect_uri, audience, refreshToken, scope)
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:
cls.org_token_manager = OrgTokenManager(grant_type, client_id, client_secret, code, redirect_uri, audience, refreshToken, scope)
else:
cls.org_token_manager = tokenManager

@classmethod
def get_token_manager(cls, version: Version):
Expand Down

0 comments on commit f429196

Please sign in to comment.