Does `supertokens` interfere with the request obje...
# support-questions
i
Does
supertokens
interfere with the request object at all? Iโ€™m trying to use regular http form posts (not for logging in), but the data never goes through. The data does go through if I remove all the Supertokens Node setup stuff
r
hey!
can you add a middleware before the supertokens middleware and see if the data is there? And then after our middleware runs, see that the data is not there?
or rather if you just comment out the supertokens middleware part, does the form data go through?
i
Yeah thatโ€™s what I was saying. If I comment out the middleware, I seem to get the data
I can add a before-and-after if preferable though
r
Hmmm. Can you open an issue about this on our GitHub please?
@ITEnthusiasm
@kakashi_44 here is the issue
i
I'll post it today. ๐Ÿ‘Œ๐Ÿฟ
@rp @kakashi_44 Did the
supertokens
Node.js docs get updated to remove
express.urlencoded
and
express.json
?
(Btw Kakashi, I don't remember if I already said this, but I highly respect the name and the profile picture lol)
I was asking because the problem actually seems to go away when I remove
express.urlencoded()
and
express.json()
. These calls were within the block of "SuperTokens copy-paste code". But when I returned to the docs site recently, I didn't see these 2 things being used anymore.
(I'm returning to this codebase after a month or so.)
r
Ah right. So if you remove them, then there is no issue anymore right?
i
Yeah
r
Ok cool. I think we might have removed those from the docs. Yea
Donโ€™t recall when exactly
i
Okay. That's fine. At least there's no problem ๐Ÿ˜… ๐Ÿ‘Œ๐Ÿฟ
2 Views