Next.js Discord

Discord Forum

next 14 nextauth prisma

Answered
English Angora posted this in #help-forum
Open in Discord
English AngoraOP
Hi, I use this article
https://authjs.dev/reference/adapter/prisma#prismaadapter
but got type error when adding adapter into my auth config ....

could anyone help?

All errors gone when I remove that adapter ...


Type '{ adapter: Adapter; theme: { logo: string; }; secret: string; providers: (EmailConfig | CredentialsConfig<Record<string, CredentialInput>>)[]; callbacks: { ...; }; }' is not assignable to type 'NextAuthConfig'.
Types of property 'adapter' are incompatible.




"@auth/prisma-adapter": "^1.4.0",
"@prisma/client": "^5.9.1",
"next": "14.0.3",
"next-auth": "^5.0.0-beta.3",
"prisma": "^5.9.1",
Answered by English Angora
changed "satisty" into "as" and it works now
View full answer

1 Reply

English AngoraOP
changed "satisty" into "as" and it works now
Answer