Hi! I'm looking to implement a backend in nodejs but can only seem to find examples that are using e...
b
Hi! I'm looking to implement a backend in nodejs but can only seem to find examples that are using express or middy (i already have a middleware layer in a lambda style servlerless function). Is there an example/demo that is a more clear than calling
middleware()
?
n
Hi, Maybe @kakashi_44 can help
k
Hey @Brian. middleware function is essential to handle all the cookies and session related stuff and also handle the errors thrown by the supertokens functions. Can you give more insight regarding your middleware layer? Maybe a code snippet
b
Do you have an example using the middle ware using standard http request and response objects? No framework.
k
All the examples and demos we have are associated with a framework. Which framework are you using for your deployment?
b
It is a custom home grown one
I guess I will just look at the others and adapt to use the super tokens js directly
Thanks
k
Sure. Let me know if you need any help with that
r
Hey @Brian. did you figure it out? You need to use middy with our library.
b
Have not had the time to work through it yet. Will do so soon, thanks.