Change ctx.session.user values to include new ones? Bad idea?
Right now when using
ctx.session.user
ctx.session.user
I get a few default options that come with t3-app.
.id
.id
,
.name?
.name?
,
.image?
.image?
and
.email?
.email?
. Is there a way to change this to include new values? I can't find an obvious spot or I am being silly.
Solution
You can do this in your auth.ts where the next-auth module is extended. Make sure you don't add anything sensitive when extending. ``` import type { Role } from "@prisma/client"; import { DefaultSession } from "next-auth";