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

Function setAuthRequired

packages/react/src/api/local-auth.tsx:118–122  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

116const listeners = new Set<() => void>();
117
118const setAuthRequired = (value: boolean): void => {
119 if (authRequired === value) return;
120 authRequired = value;
121 for (const listener of listeners) listener();
122};
123
124/**
125 * Signal that a request was rejected as unauthenticated. No-op on desktop (the

Callers 2

setLocalAuthTokenFunction · 0.85
notifyLocalAuthRequiredFunction · 0.85

Calls 1

listenerFunction · 0.85

Tested by

no test coverage detected