Next.js Discord

Discord Forum

Remove values from NextAuth Types

Unanswered
Blue-throated Hummingbird posted this in #help-forum
Open in Discord
Avatar
Blue-throated HummingbirdOP
I'm wanting to just store a uid value in my JWT token instead of the default name, image, and email. I extended it by doing the following and get this error.

declare module "next-auth" {
    interface DefaultSession {
        user: {
            uid: string;
        };
    }
}
Image

0 Replies