Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: can't use @auth/prisma-adapter in next-auth projects #8435

Closed
juliusmarminge opened this issue Aug 27, 2023 · 1 comment
Closed

bug: can't use @auth/prisma-adapter in next-auth projects #8435

juliusmarminge opened this issue Aug 27, 2023 · 1 comment
Labels
adapters Changes related to the core code concerning database adapters drizzle @auth/drizzle-adapter prisma @auth/prisma-adapter triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@juliusmarminge
Copy link
Contributor

Adapter type

@auth/prisma-adapter

Environment

System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M1 Pro
Memory: 184.33 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.1 - ~/Library/Caches/fnm_multishells/45960_1693158926872/bin/node
npm: 9.6.7 - ~/Library/Caches/fnm_multishells/45960_1693158926872/bin/npm
pnpm: 8.6.2 - ~/Library/Caches/fnm_multishells/45960_1693158926872/bin/pnpm
Browsers:
Safari: 16.5.2

npmPackages:
@next-auth/prisma-adapter: ^1.0.7 => 1.0.7
@auth/prisma-adapter: ^1.0.1 => 1.0.1

Reproduction URL

https://github.com/juliusmarminge/auth-core-prisma-adapter-in-next-auth

Describe the issue

Getting a type-mismatch when using @auth/prisma-adapter in next-auth.

Not sure if this should be considered a bug or not, considering there is a @next-auth/prisma-adapter package that works fine, but I don't think they are getting updated anymore?

The @auth/drizzle-adapter works fine so don't see how the prisma adapter should be any different?

How to reproduce

CleanShot.2023-08-27.at.20.37.35.mp4

Expected behavior

No type-errors when using either of the 2 adapters

@juliusmarminge juliusmarminge added adapters Changes related to the core code concerning database adapters triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Aug 27, 2023
@github-actions github-actions bot added drizzle @auth/drizzle-adapter prisma @auth/prisma-adapter labels Aug 27, 2023
@balazsorban44
Copy link
Member

After some debugging, this is a result of the existing issue #6226

You can add the following (or the equivalent of other package managers) to your package.json:

"pnpm": {
  "overrides": {
    "@auth/core": "0.12.0"
  }
}

This was fixed in #8294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters drizzle @auth/drizzle-adapter prisma @auth/prisma-adapter triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants