fix(ts): add back DefaultSession types

This commit is contained in:
Balázs Orbán 2023-06-20 16:50:12 +01:00 committed by GitHub
parent 2b6159e804
commit 7c7f0fac97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']
}
}