Hi, I'm just getting started with SuperTokens. I ...
# share-your-work
v
Hi, I'm just getting started with SuperTokens. I would like to integrate it with an existing FeathersJS backend, but there does not seem to be much info. Would love to see an integration guide. It seems it would be pretty closely follow the same themes in the nestjs docs.
r
hey @velo.2 welcome! Does the req / response object of feature js match that of express or any of the framewotks that we do support?
v
Yes see more here https://feathersjs.com/api/
r
I don't think we support this framework then. Sorry.
v
FeathersJS has an extensive authentication strategy and service architecture. It should be feasible. Other frameworks like passportjs, simov/grant and auth0 already plug in.
r
Yea, but we work slightly differently. We expose APIs to the frontend via the framework itself and provide session management functions that read / write to the framework's req / res objects.
v
what makes it possible with nestjs that breaks in feathersjs? i think these two frameworks are fundamentally the same. more here: https://blog.feathersjs.com/feathersjs-vs-nestjs-compared-in-3-key-areas-427def783555
r
so our guide for nestjs works when using express with nestjs. If express can also be used wirth featherJS, then it would work!
v
you asked that as the very first question. i replied that it did.
r
right then. Apologies. I missed that
so it should be able to work then.
But as you know, we don't have a guide for it.
So it may be slightly different in certain ways to nestjs (most likely)
but im not sure if we will be able to make a guide for this anytime soon (we have a huge list of priority tasks)
v
i think that if one of the maintainers/stakeholders were to open an issue on https://github.com/feathersjs with a call to action for the integration writeup (or even better, a lib) someone would take it on.
r
yea fair. We can open an issue in here. Will do in sometime
thanks.
v
that would be very helpful. i'll be watching the feathersjs repo for the new issue to pop up.
r
hey @velo.2 i think it would make more sense to add this issue in the supertokens repo since there is nothing that feathersjs needs to change for an integration to happen. So please make an issue in our node SDK, and we can have a look when we have time.
6 Views