From 7c7f0fac971c5e92d9e7483d188bc44137de80f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Tue, 20 Jun 2023 16:50:12 +0100 Subject: [PATCH] fix(ts): add back `DefaultSession` types --- auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.ts b/auth.ts index 86beb34..a73db04 100644 --- a/auth.ts +++ b/auth.ts @@ -1,4 +1,4 @@ -import NextAuth from 'next-auth' +import NextAuth, { type DefaultSession } from 'next-auth' import GitHub from 'next-auth/providers/github' declare module 'next-auth' { @@ -6,7 +6,7 @@ declare module 'next-auth' { user: { /** The user's id. */ id: string - } + } & DefaultSession['user'] } }