intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
246 stars 246 forks source link

is Refresh token invalid after 24 hours ? #454

Closed codetestmg closed 2 years ago

codetestmg commented 2 years ago

As per doc https://help.developer.intuit.com/s/article/Validity-of-Refresh-Token#:~:text=The%20Refresh%20Token%20is%20valid,consent%20again%20until%20this%20time.

Please note that if a new Refresh Token is returned, the previous one expires.

So does it mean if I am not calling refreshAccessTokenWithRefreshToken($currentRefreshToken) method after 24 hours then the current refresh token will be valid for 100 days and it will only invalidate the current token if I call refreshAccessTokenWithRefreshToken($currentRefreshToken)?

Also how to update the access token in runtime if it expired from the current one?.