Im new to n8n and tried using HTTP Request with OAuth2. But after the token expired, it didnt refresh automatically — I had to go back into n8n and reconnect. Is that how its supposed to work?
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.
If the refresh token expires after one week, should I reauthenticate in n8n?
Yes, if the service requires you to re-auth, and you would like to continue using it, you can re-auth in n8n. Go to the corresponding credentials, and click on whichever button looks like it’s going to re-auth you with the service.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.