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

Function getServerAuthToken

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

* Read the bearer token for the running sidecar. Only used to build the * "Connect an agent" install command, which an external agent runs and so * needs the token in plaintext. Returns null when no sidecar is up.

()

Source from the content-addressed store, hash-verified

18 * needs the token in plaintext. Returns null when no sidecar is up.
19 */
20 getServerAuthToken(): Promise<string | null> {
21 return ipcRenderer.invoke("executor:server:auth-token");
22 },
23 /** Read the desktop-persisted server profile payload. */
24 getServerProfiles(): Promise<string | null> {
25 return ipcRenderer.invoke("executor:server-profiles:get");

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.80

Tested by

no test coverage detected