Skip to content

Commit

Permalink
Added Refresh Token to Client Instance
Browse files Browse the repository at this point in the history
  • Loading branch information
varunbheemaiah committed Apr 14, 2021
1 parent 673ab5e commit e1fff9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quickbooks/client.py
Expand Up @@ -77,7 +77,8 @@ def __new__(cls, **kwargs):
else:
instance.sandbox = False

instance._start_session()
refresh_token = instance._start_session()
instance.refresh_token = refresh_token

if 'company_id' in kwargs:
instance.company_id = kwargs['company_id']
Expand All @@ -99,6 +100,7 @@ def _start_session(self):
client_secret=self.auth_client.client_secret,
access_token=self.auth_client.access_token,
)
return self.auth_client.refresh_token

@classmethod
def get_instance(cls):
Expand Down

0 comments on commit e1fff9b

Please sign in to comment.