MCPcopy Create free account
hub / github.com/hashintel/hash / useAuthInfo

Function useAuthInfo

apps/hash-frontend/src/pages/shared/auth-info-context.tsx:305–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303};
304
305export const useAuthInfo = (): AuthInfoContextValue => {
306 const authInfo = useContext(AuthInfoContext);
307
308 if (!authInfo) {
309 throw new Error(
310 "Cannot use auth info because it has not been defined. Verify `useAuthInfo` is being called within a child of the `AuthInfoProvider`.",
311 );
312 }
313
314 return authInfo;
315};
316
317/**
318 * Use the currently authenticated user.

Callers 15

useLogoutFlowFunction · 0.90
MePageFunction · 0.90
SigninPageFunction · 0.90
AppFunction · 0.90
PageFunction · 0.90
SignupPageFunction · 0.90
VerifyEmailPageFunction · 0.90
useUpdateProfileAvatarFunction · 0.90
SecurityPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected