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

Need guidance on extending Prisma adapter while maintaining core functionality #12273

Open
kissngg opened this issue Nov 21, 2024 · 0 comments
Open
Labels
triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@kissngg
Copy link

kissngg commented Nov 21, 2024

What is the improvement or update you wish to see?

The current documentation lacks clear guidance on how to extend the Prisma adapter while maintaining core functionality.

Specifically:

  1. How to extend the basic Auth.js schema with additional fields/relations
  2. Best practices for customizing the schema while using the Prisma adapter
  3. Examples of successful Prisma adapter extensions
  4. Guidelines for maintaining core Auth.js functionality while adding custom fields

While the documentation covers creating custom adapters from scratch, there's no clear guidance on extending the existing Prisma adapter.

Is there any context that might help us understand?

Many developers using Prisma likely have existing database schemas or need additional fields/relations beyond the basic Auth.js schema. Currently, the only documented options are:

  1. Using the basic schema as-is
  2. Creating a completely custom adapter

There's a gap in documentation for those who want to extend the Prisma adapter while keeping its core functionality.

Does the docs page already exist? Please link to it.

https://authjs.dev/getting-started/adapters/prisma

@kissngg kissngg added the triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

1 participant