MCPcopy Index your code
hub / github.com/typehero/typehero / Session

Interface Session

packages/auth/src/react.ts:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6export { SessionProvider, signIn, signOut } from 'next-auth/react';
7
8interface Session extends DefaultSession {
9 user?: DefaultSession['user'] & {
10 id: string;
11 role: RoleTypes[];
12 };
13}
14
15// @ts-expect-error Hacking the type so we don't have to do the module augmentation technique.
16export const useSession: () => Session & SessionContextValue = useAuthSession;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected