diff options
| author | schererleander <leander@schererleander.de> | 2025-07-02 22:17:44 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-07-02 22:17:44 +0200 |
| commit | ed9dfc0080ce10dbffe51cbe3fd031b332d43f79 (patch) | |
| tree | 9bd2febc727544a2df17989de621ba518ac4ffe0 /src/types/next-auth.d.ts | |
| parent | 4ef44317b93d019f948ace9a107d00d876487b1f (diff) | |
feat: add type definitions
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 |
