MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / handleActionRequiringAuth

Function handleActionRequiringAuth

src/components/auth/WithAuth.tsx:81–87  ·  view source on GitHub ↗
(redirectUrl: RedirectUrl)

Source from the content-addressed store, hash-verified

79 * };
80 */
81 const handleActionRequiringAuth = (redirectUrl: RedirectUrl) => {
82 if (!isAuthenticated) {
83 setShowAuthModal(true);
84 setRedirectUrl(redirectUrl);
85 throw new UserNotLoggedInError("User is not logged in");
86 }
87 };
88
89 return (
90 <>

Callers 3

HotbarFunction · 0.85
LabelsAndTagsFunction · 0.85
ExpandWithAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected