fix(ts): add back DefaultSession types (#57)
This commit is contained in:
commit
7aacacb9bc
1 changed files with 2 additions and 2 deletions
4
auth.ts
4
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']
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue