Regeneration of Access Token
Note: Please note that the generation and regeneration of OAuth token is user’s responsibility and the IBM Cast Iron Connector for QuickBooks doesn’t handle this.
Before the token expires, your app can obtain a new token to provide uninterrupted service by calling the Reconnect API.
The following conditions must be met in order to renew the OAuth access token:
- The renewal must be made within 30 days of token expiry. Note that when your app received the token during the OAuth grant, the expiry date was calculated (180 days).
- The current token must still be active.
The auto-renewal strategy helps to track the expiry as follows:
- Keep track of when the token expires (180 days after you get it).
- Wait 151 days (this is now within 30 days of token expiration), call the “Reconnect API” to get a new token.
- Start over with #1 after getting new token.