fix(ts): add back DefaultSession types (#57)

This commit is contained in:
Shu Ding 2023-06-20 17:53:46 +02:00 committed by GitHub
commit 7aacacb9bc
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']
}
}