In n8n, OAuth2 tokens should refresh automatically as long as the service provides a refresh token and returns proper error codes (like 401 on expiry).
If you’re using the Client Credentials flow, refresh tokens are not issued by design, so n8n can’t renew the token and you’ll need to request a new one each time. Some APIs also break auto-refresh if they don’t send standard responses. Updating to the latest n8n version can help.
in addition, related questions are here:
- Google BigQuery OAuth credentials do not refresh
- How to set Gmail OAuth for ONLY READ? - #4 by cutecatcode
Please check them out and tell me if they help you.