i have changed the user and session types and now it just ignore all properties but name and email #11531
Unanswered
AmgadEbaid
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
so i have added new properties to the user, like in the documents.
and it was adding it with no problem but suddenly it just ignored all properties even the default but keept the email and name Those are the only properties i can get from the auth.user
no matter what i have added in the return
the thing is it was working as expected but suddenly it stoped and i didnt do anything.
`import NextAuth from 'next-auth';
}
async authorize(credentials) {
const parsedCredentials = z
.object({ email: z.string().email(), password: z.string().min(6) })
.safeParse(credentials);
if (parsedCredentials.success) {
const { email, password } = parsedCredentials.data;
Beta Was this translation helpful? Give feedback.
All reactions