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

Function useAuthRequired

packages/react/src/api/local-auth.tsx:133–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131};
132
133const useAuthRequired = (): boolean =>
134 React.useSyncExternalStore(
135 (onChange) => {
136 listeners.add(onChange);
137 return () => listeners.delete(onChange);
138 },
139 () => authRequired,
140 () => false,
141 );
142
143// --- Gate UI ----------------------------------------------------------------
144

Callers 1

LocalAuthGateFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected