(connection: Connection)
| 21 | /** An OAuth connection carries the `oauthClient` slug that minted it; a static |
| 22 | * credential does not. That single field decides the Reconnect path. */ |
| 23 | export function reconnectMode(connection: Connection): ReconnectMode { |
| 24 | return connection.oauthClient != null ? "oauth" : "refresh"; |
| 25 | } |
| 26 | |
| 27 | /** Build the `oauth.start` payload that re-runs the OAuth flow for an existing |
| 28 | * OAuth connection. The branded `name`/`template`/`oauthClient` carried by the |
no outgoing calls
no test coverage detected