Fix up auth
This commit is contained in:
parent
8a142fcdaa
commit
f4bcba82d1
3 changed files with 5 additions and 2 deletions
13
index.d.ts
vendored
Normal file
13
index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import NextAuth, { DefaultSession } from 'next-auth'
|
||||
|
||||
declare module 'next-auth' {
|
||||
/**
|
||||
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
|
||||
*/
|
||||
interface Session {
|
||||
user: {
|
||||
/** The user's postal address. */
|
||||
address: string
|
||||
} & DefaultSession['user']
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue