From ed9dfc0080ce10dbffe51cbe3fd031b332d43f79 Mon Sep 17 00:00:00 2001 From: schererleander Date: Wed, 2 Jul 2025 22:17:44 +0200 Subject: feat: add type definitions --- src/types/next-auth.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/types/next-auth.d.ts 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 -- cgit v1.3.1