NPM package to streamline the use of allauth headless in JS apps
CarlosBueno99 opened this issue · 3 comments
it'd be useful to have a npm package that covers the functionality in allauth.js as that would help drive adoption by providing an easier entry point into a working implementation.
I already see some work moving towards this direction: https://jsr.io/@knowsuchagency/allauth-fetch
(
I'd actually recommend the use of auth.js (formerly next-auth, now available for multiple frameworks) which handles most of the frontend misery for you (refetching tokens etc). It might even be useful in conjunction with the allauth-fetch package linked above to encapsulate some specifics.
For now, I would prefer to leave it up to the community to pick this up. Over in the npm realm, there is a lot of diversity and frameworks to be supported, and I think that is best served in projects on their own.