File size: 477 Bytes
5825c28
 
61e6dfe
 
 
 
5825c28
 
 
 
 
 
 
61e6dfe
4699c39
61e6dfe
 
4699c39
61e6dfe
 
 
 
 
 
 
4699c39
61e6dfe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import "next-auth";
import "next-auth/jwt";

declare module "next-auth" {
  interface Session {
    accessToken?: string;
    user: {
      username?: string;
      isPro?: boolean;
      name?: string | null;
      email?: string | null;
      image?: string | null;
    };
  }

  interface User {
    username?: string;
    isPro?: boolean;
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    accessToken?: string;
    username?: string;
    isPro?: boolean;
  }
}