session.user extended with id prop

This commit is contained in:
2024-01-08 15:50:03 +01:00
parent cd9060c97e
commit adae452399
3 changed files with 36 additions and 5 deletions

10
app/lib/types/next-auth.d.ts vendored Normal file
View 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'];
}
}