Prisma Adapter
Unanswered
Cane di Oropa posted this in #help-forum
Cane di OropaOP
Hello, supposedly this has already been fixed but I'm still facing issues
The adapter: offers me
import NextAuth from "next-auth";
import GoogleProvider from "next-auth/providers/google";
import { PrismaAdapter } from "@auth/prisma-adapter";
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
export default NextAuth({
adapter: PrismaAdapter(prisma),
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
});The adapter: offers me
ype 'import("c:/Users/Hati/Project/roleplaying-platform/node_modules/@auth/core/adapters").Adapter' is not assignable to type 'import("c:/Users/Hati/node_modules/next-auth/adapters").Adapter'.
Types of property 'linkAccount' are incompatible.'2 Replies
Golden-winged Warbler
I don't recall how I worked through this and would need more details of your error... but you can look at our setup that is working, maybe that can help?
https://github.com/hofstadter-io/hof/tree/_dev/next
https://github.com/hofstadter-io/hof/tree/_dev/next
Golden-winged Warbler