Where could I find v4 adapters documentation? #7984
-
I would like to use the current stable version of I followed the documentation for route handlers: https://next-auth.js.org/configuration/initialization#route-handlers-app Then I tried to add the prisma adapter by reading the documentation: https://next-auth.js.org/adapters I tried to use the new import NextAuth from "next-auth";
import { PrismaAdapter } from "@auth/prisma-adapter";
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
const handler = NextAuth({
adapter: PrismaAdapter(prisma),
// ...
})
export { handler as GET, handler as POST } The IDE shows this error on the
Then I understood that the new Where could I find the documentation for v4 adapters? Have they been fully removed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Use |
Beta Was this translation helpful? Give feedback.
-
I found documentation in the Internet Archive - v4 Database Adapters |
Beta Was this translation helpful? Give feedback.
Use
import { PrismaAdapter } from "@next-auth/prisma-adapter"
instead ofimport { PrismaAdapter } from "@auth/prisma-adapter"
.@auth/prisma-adapter
is for version 5.