Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Refresh Token to Client Instance #223

Merged
merged 1 commit into from Jul 14, 2021
Merged

Conversation

varunbheemaiah
Copy link
Contributor

According to the QuickBooks documentation, the refresh() function call might return a new refresh token and as a best practice, we need to use that token for future requests.
I added the refresh token to the client instance so that on creation of a client, the user gets back a possibly new refresh code that they can use to create other clients.
The current implementation would require users to redo the oauth2 process every 100 days while the new implementation will only require it one time upon server start
This change will not break existing applications that use this library and will improve quality of life for any new applications built using this library

Reference: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0#understand-token-expiration

@ej2 ej2 merged commit 4abddb3 into ej2:master Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants