-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
adaptersChanges related to the core code concerning database adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description
Adapter type
@auth/prisma-adapter
Environment
System:
OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (16) x64 Intel(R) Xeon(R) W-11955M CPU @ 2.60GHz
Memory: 3.70 GB / 15.23 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 20.19.2 - /usr/local/bin/node
npm: 10.8.2 - /usr/local/bin/npm
pnpm: 10.11.1 - /usr/local/bin/pnpm
npmPackages:
@auth/core: ^0.36.0 => 0.36.0
@auth/prisma-adapter: ^2.9.1 => 2.9.1
@auth/sveltekit: ^1.6.0 => 1.6.0
Reproduction URL
N/A
Describe the issue
The Prisma adapter imports from @prisma/client
. This does not work when using a custom output
path in the Prisma generator.
Prisma strongly recommends using a custom output
path. Not doing so results in a warning in version 6.6.0, and it will be required in version 7. Also, the new prisma-client
generator requires a custom output
path.
How to reproduce
Create a schema with a custom Prisma output
path.
Expected behavior
Auth.js should not import Prisma
and PrismaClient
from @prisma/client
.
Metadata
Metadata
Assignees
Labels
adaptersChanges related to the core code concerning database adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.