- A user resets their password or clicks Sign Out of All Devices, invalidating any access tokens Seam may be using to authenticate to the third-party API.
- The third-party service invalidates access tokens due to excessive usage or as part of a system update.
- An access token used internally by Seam expires.
Detect a Disconnection
When an account becomes disconnected, Seam emits aconnected_account.disconnected event. Subscribing to this event through a webhook is the recommended way to detect a disconnection, because it tells you the moment the account needs attention instead of on your next poll.
Seam also records the disconnection on the connected_account itself, so you can inspect the current state at any time. When an account is disconnected, Seam emits an error like the following example on the connected_account:
connected_account.user_identifier to learn the user’s email address. For more information about creating Connect Webviews, see Connect Webview Process.