diff --git a/types/next-auth.d.ts b/types/next-auth.d.ts index 32fd7ea05..b57090adc 100644 --- a/types/next-auth.d.ts +++ b/types/next-auth.d.ts @@ -3,9 +3,13 @@ import type { Role } from '@prisma/client'; import type { DefaultSession } from 'next-auth'; declare module 'next-auth' { - /** - * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context - */ + + interface User { + roles?: Array<{ + teamId: string; + role: Role; + }>; + } interface Session { user: DefaultSession['user'] & { id: string;