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

Function rotateToken

apps/desktop/src/preload/index.ts:44–46  ·  view source on GitHub ↗

* Rotate the local bearer token and restart the sidecar so it takes effect. * Returns the refreshed connection. AI-client MCP configs must be re-issued * with the new token afterwards.

()

Source from the content-addressed store, hash-verified

42 * with the new token afterwards.
43 */
44 rotateToken(): Promise<DesktopServerConnection> {
45 return ipcRenderer.invoke("executor:server:rotate-token");
46 },
47 /**
48 * Stop + restart the sidecar so settings changes take effect.
49 * Main reloads the window and returns the refreshed server connection.

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.80

Tested by

no test coverage detected