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

Function applyBearer

packages/react/src/api/local-auth.tsx:48–53  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

46};
47
48const applyBearer = (token: string): void => {
49 const current = getExecutorServerConnection();
50 // Only standalone web carries the token in the client; desktop injects it.
51 if (current.kind !== "http") return;
52 setExecutorServerConnection({ ...current, auth: { kind: "bearer", token } });
53};
54
55/**
56 * Resolve and apply the local bearer token at boot. Call once before the router

Callers 2

bootstrapLocalAuthTokenFunction · 0.85
setLocalAuthTokenFunction · 0.85

Calls 2

Tested by

no test coverage detected