Any ETA on bun runtime based sdks for auth? Appare...
# share-your-work
a
Any ETA on bun runtime based sdks for auth? Apparently using supertokens/node shoots random error on Elysia framework
r
Hey. We thought it was already compatible. Hmm. Can you open an issue with the error stack and the setup you have?
a
Sure, I'll open issues shortly!
r
Thanks
a
@rp_st sorry for getting back late, it's mostly related to how we call the functions. In Elysia everything is kinda promises and supertoken sdks are functions. I think the sdk requires a tweek from the team specifically for the framework and not something bun related.
I'm temporarily trying out this and kinda need some help on the setup code wise: https://discord.com/channels/603466164219281420/907932061669654548/1165692766848831671
r
I see. We have a new feature for custom frameworks where you can add support for frameworks we don't support. For example, we have added support for next13's app dir using this: https://github.com/supertokens/supertokens-node/blob/master/lib/ts/nextjs.ts As you can see, we use functions from
./framework/custom
, and calling the supertokens middleware here (https://github.com/supertokens/supertokens-node/blob/master/lib/ts/nextjs.ts#L101) using the custom framework's
PreParsedRequest
and
CollectingResponse
objects. Maybe these can help?
13 Views