Third-party adapters to the nextauthjs organization #1161
Replies: 6 comments 5 replies
-
Since Fauna is the only custom adapter we have at the moment, I think either of these two should be fine. I lean more towards second option mainly because it will be easy to maintain, especially since these are maintained by community and the people who use/maintain one custom adapter wouldn't use/maintain other custom adapter. |
Beta Was this translation helpful? Give feedback.
-
Yeah I agree with @pbteja1998 and putting adapters in their own packages. Since DB adapters are mutually exclusive, a user would only ever be using one at a time. No need to download and install all the stuff for other databases as well. |
Beta Was this translation helpful? Give feedback.
-
The second option |
Beta Was this translation helpful? Give feedback.
-
I made the repo https://github.com/nextauthjs/adapters public, so we can let people start streaming in with their custom adapters PRs! |
Beta Was this translation helpful? Give feedback.
-
What's been decided? Will there be separate repos for each adapter? or All of the adapters are in the same repo? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, just wanted to summarize the current status of the adapter repo and figure out what steps need to be taken next. So we have (1) Prisma and (2) TypeORM merged and in. Both have some tests already as well. We have PRs open for adding (3) FaunaDB and (4) Firebase. I think Fauna should be relatively easy to add as that was already in the main package at one point. @pbteja1998 if you need any help or have any questions, feel free to write in here. Regarding the Firebase adapter, that PRs mine - I'm just basing it off of the adapter a contributor sent in which he was successfully using his project. Primary work here is in "generalising" it, which shouldn't be too hard. We also talked to someone who has a (5) DynamoDB adapter on npm about contributing it upstream to this repo / set of packages. He said he was interested, but haven't heard anything since then (see: https://twitter.com/tgandrews/status/1355990745237348356) I want to begin testing actually using the adapters from this repo in a branch of Cheers! |
Beta Was this translation helpful? Give feedback.
-
Currently, we would like to have a minimal number of built-in adapters for easier maintenance.
At the same time, we would like to encourage the community to create their own, custom adapter to support whatever database they would like to.
We could create a new repository to hold those third-party adapters, to give them a more official feeling.
As I see it, on NPM, they could be published in two ways:
-Ruled out.@next-auth/adapters
Including all the adapters in one package, each of them exported as their own module@next-auth/{adapter-name}-adapter
each adapter is its own package, and the user only pulls down what they needRef: #1146
Beta Was this translation helpful? Give feedback.
All reactions