MCPcopy
hub / github.com/Open-Legal-Products/mike / useAuth

Function useAuth

frontend/src/contexts/AuthContext.tsx:109–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109export function useAuth() {
110 const context = useContext(AuthContext);
111 if (context === undefined) {
112 throw new Error("useAuth must be used within an AuthProvider");
113 }
114 return context;
115}

Callers 15

VerifyMfaPageFunction · 0.90
ShareWorkflowModalFunction · 0.90
WorkflowDetailPageFunction · 0.90
WorkflowListFunction · 0.90
ProjectsOverviewFunction · 0.90
ProjectDocumentsViewFunction · 0.90
NewProjectModalFunction · 0.90
ProjectWorkspaceProviderFunction · 0.90
SidebarChatItemFunction · 0.90
AddDocumentsModalFunction · 0.90
AppSidebarFunction · 0.90
MfaLoginGateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…