Skip to content

Issue with python-quickbooks doing automatic token refreshes when access_token is not given to AuthClient #392

@kyleb-app

Description

@kyleb-app

I identified a problem that I feel a lot of users are experiencing based on search results pointing to multiple QB forum posts.

When instantiating the AuthClient from the intuit library, you MUST pass in the access_token because if you do not the python-quickbooks library will issue a token refresh for every call. This will conflict with your existing token refresh task/function, because when python-quickbooks does it (in the rare event a new refresh token is issued during this time, which is about once every 24h) it will not save the new refresh token to your database, and it will invalidate the old one (which is the one still in your database). This will cause invalid grant errors for every token refresh request you issue in the future, until you relink your app to Quickbooks online.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions