MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / useAuthContext

Function useAuthContext

frontend/src/hooks/useAuthContext.tsx:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61function useAuthContext() {
62 const ctx = useContext(AuthContext)
63 if (!ctx) throw new Error('useAuthContext must be used within AuthProvider')
64 return ctx
65}
66
67export { AuthProvider, useAuthContext }

Callers 4

NavbarFunction · 0.90
GuestModeNoticeFunction · 0.90
LandingPageFunction · 0.90
useAuthFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected