Skip to content

My flow ran fine for weeks, now suddenly 401 and manual re-login

OAuth refresh tokens can expire on password change, MFA reset, app-permission change, or after a fixed lifetime. A flow that just refresh-and-goes can't self-recover.

Try this first

  1. 1Check first whether the user recently changed their password or reset MFA, that invalidates almost any refresh token.
  2. 2Check whether the OAuth app in the provider (Google, Microsoft, HubSpot) hasn't been revoked by an admin or security policy.
  3. 3Ideally bind the connection to a service account, not a person. Personal accounts expire on departure, password changes trigger refresh failures.
  4. 4Build a separate alert for 401 or invalid_grant: send a Slack message to the owner instead of just an empty error mail from the iPaaS.
  5. 5Document per flow which account holds the connection, otherwise nobody knows who has to re-login.

When to bring us in

If this comes back across different flows, the issue is in your IAM choice, not the flow. We can look at that.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.