Token-refresh automation
Last updated 2026-06-14
Definition
Token-refresh automation keeps your connections alive without you logging back in. OAuth access tokens expire fast — often within an hour. Quri stores the refresh token and quietly trades it for a fresh access token before the old one dies, so a source you connected weeks ago keeps syncing instead of silently going dark.
How to do this in Quri
- Connect a source with OAuth at /app/connect.
- Quri stores the refresh token returned alongside the access token.
- Before the access token expires, Quri trades the refresh token for a new one.
- Check the source’s health at /app/connect to confirm it is still reading.
Frequently asked
- Will my connection stop working when the token expires?
- Not on its own. Quri refreshes the access token before it lapses, so syncing continues. A connection only breaks if the source revokes the refresh token or you disconnect it yourself.
- What happens if a refresh fails?
- Quri marks the source as needing reconnection rather than failing quietly. You reconnect it at /app/connect with a fresh grant, and reading resumes from there.