MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / reconnectMode

Function reconnectMode

packages/react/src/plugins/oauth-reconnect.ts:23–25  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

21/** An OAuth connection carries the `oauthClient` slug that minted it; a static
22 * credential does not. That single field decides the Reconnect path. */
23export 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

Callers 3

handleReconnectFunction · 0.90
OwnerAccountsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected