T3 Docs - code explanation

import { DefaultSession } from "next-auth";

declare module "next-auth" {
interface Session {
user?: {
id: string;
} & DefaultSession["user"];
}
}
import { DefaultSession } from "next-auth";

declare module "next-auth" {
interface Session {
user?: {
id: string;
} & DefaultSession["user"];
}
}
can some one explain to me whst & DefaultSession["user"] is doing?
1 Reply
rocawear
rocawear2y ago
Create T3 App
NextAuth.js 🚀 Create T3 App
The best way to setup an opinionated, full-stack, typesafe Next.js project
Want results from more Discord servers?
Add your server