diff options
Diffstat (limited to 'src/types/next-auth.d.ts')
| -rw-r--r-- | src/types/next-auth.d.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/types/next-auth.d.ts b/src/types/next-auth.d.ts new file mode 100644 index 0000000..2edf150 --- /dev/null +++ b/src/types/next-auth.d.ts @@ -0,0 +1,25 @@ +import NextAuth from "next-auth" + +declare module "next-auth" { + interface Session { + user: { + id: string + name?: string | null + email?: string | null + image?: string | null + } + } + + interface User { + id: string + name?: string | null + email?: string | null + image?: string | null + } +} + +declare module "next-auth/jwt" { + interface JWT { + id: string + } +}
\ No newline at end of file |
