session.user extended with id prop
This commit is contained in:
10
app/lib/types/next-auth.d.ts
vendored
Normal file
10
app/lib/types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import NextAuth, { DefaultSession } from 'next-auth';
|
||||
import { JWT } from 'next-auth';
|
||||
|
||||
declare module 'next-auth' {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
} & DefaultSession['user'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user