nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
24.28k stars 3.38k forks source link

How to Contribute to Porting Adapters #6725

Open JoRyGu opened 1 year ago

JoRyGu commented 1 year ago

Description 📓

I wouldn't mind contributing some of my time to porting over some adapters so that users can start using them in other frameworks outside of Next.js but I'm not sure where to start. As far as I can tell, all the current adapters live in the monorepo at next-auth/packages, but those are all the old adapters that still have a React/Next.js peer dependency. Is there an existing place where you've started these ports or has that yet to be determined?

How to reproduce ☕️

N/A

Contributing 🙌🏽

Yes, I am willing to help implement this feature in a PR

balazsorban44 commented 1 year ago

Hi, adapters are not tied to Next.js. All adapters should work outside it. Which adapter has React/Next.js as a peer dependency?

We plan to re-release adapters under the @auth/* scope, once we agreed on all the major changes we want to do the API, but for now, all @next-auth/*-adapter should work even with @auth/core. The only limitation is that if you are trying to run it in a non-Node.js environment, the ORM/db lib has to support that environment, which is outside of our control to a certain degree. See #6582 for example.