| 123456789101112131415161718192021 |
- import type { DefaultSession } from 'next-auth';
- declare module 'next-auth' {
- interface Session {
- user: {
- id: string;
- groupIds: string[];
- } & DefaultSession['user'];
- }
- interface User {
- id: string;
- }
- }
- declare module 'next-auth/jwt' {
- interface JWT {
- userId?: string;
- groupIds?: string[];
- }
- }
|