File size: 281 Bytes
ebde876
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

import NextAuth, { DefaultSession } from "next-auth"

declare module "next-auth" {
    interface Session {
        user: {
            id: string
            username?: string
        } & DefaultSession["user"]
    }

    interface User {
        username?: string | null
    }
}