Token Expiration
Token Expiration
Understanding and resolving token expiration issues.
What Are Tokens?
When you connect HubSpot or QuickBooks, you authorize SimpleCommerceSync to access your data. This authorization creates "tokens" - digital keys that prove we have permission.
Tokens are like temporary passwords that:
- Grant access to your data
- Expire after a set time (for security)
- Can be refreshed automatically
How Token Refresh Works
Automatic Refresh
SimpleCommerceSync automatically refreshes tokens:
- Tokens are checked regularly (every 30 minutes)
- Before they expire, we request new tokens
- This happens in the background - you don't need to do anything
When Automatic Refresh Fails
Sometimes refresh can fail due to:
- Network issues during refresh
- Account changes in HubSpot/QuickBooks
- Revoked permissions
- Extended period of inactivity
Signs of Token Problems
In the Dashboard
- Connection status shows "Disconnected" or "Error"
- Warning message about connection issues
In Sync Logs
- Multiple syncs failing with "Unauthorized" errors
- Error messages mentioning "token" or "authentication"
Resolving Token Issues
Step 1: Check Connection Status
- Go to Settings then Connections
- Look at the status for HubSpot and QuickBooks
- Note which connection has issues
Step 2: Reconnect
- Click Disconnect for the affected connection
- Click Connect to start fresh
- Complete the authorization flow
- Verify status shows "Connected"
Step 3: Verify Syncs Resume
- Go to Data and check recent sync logs
- New syncs should process normally
- Previously failed syncs can be retried
Preventing Token Issues
Keep Accounts Active
- Maintain active HubSpot and QuickBooks subscriptions
- Log into both platforms periodically
- Don't let accounts become dormant
Don't Revoke App Access
Avoid revoking SimpleCommerceSync access from:
- HubSpot Connected Apps settings
- Intuit account management
If you revoke access, you'll need to reconnect.
Password Changes
If you change your HubSpot or QuickBooks password:
- Existing connections may continue working
- If issues occur, reconnect the affected service
HubSpot Token Details
- Access tokens expire after 6 hours
- Refresh tokens are used to get new access tokens
- SimpleCommerceSync refreshes before expiration
QuickBooks Token Details
- Access tokens expire after 1 hour
- Refresh tokens expire after 100 days (if unused)
- Regular syncing keeps tokens fresh
Troubleshooting Specific Errors
"Token expired" or "Invalid token"
- Go to Settings then Connections
- Disconnect the affected service
- Reconnect immediately
"Refresh token expired"
This means the connection was inactive too long:
- Disconnect the connection
- Reconnect and re-authorize
"Access denied" or "Insufficient permissions"
Permissions may have changed:
- Disconnect the connection
- Reconnect and carefully review permissions
- Ensure all required permissions are granted
Repeated token failures
If tokens keep expiring:
- Check your HubSpot/QuickBooks account status
- Verify no account restrictions
- Contact support if issues persist
Getting Help
If you've tried reconnecting and still have issues:
- Note the error messages you see
- Check when the problem started
- Verify account access in HubSpot/QuickBooks directly
- Contact support with these details
