hello guys i can figure out why this error comes out with supertokens middleware in nestjs
n
hello guys i can figure out why this error comes out with supertokens middleware in nestjs
r
hey! @porcellus can help here
n
every time the middleware is called in nestjs this error throws
p
hi
n
hi
p
what version of the node SDK are you using?
n
"supertokens-node": "12.1.6",
can i know the reason
r
Also, why is the
next
is not a function error coming?
p
the reason for asking the version number? the stack trace you added had line numbers I can check in our repo if I know the exact version 🙂
are you using express in nestjs?
n
using nest core v9
p
so you didn't add platform-fastify or anything, right?
n
"@nestjs/platform-express": "^9.0.0"
p
hmm, that rules out my next guess. could you show the config passed to supertokens?
n
sure
file
p
also, just to double check: you get the appropriate response, the issue is that you also get error logs in the console?
n
next fuction is passed by the req but not used my supertokens guard
p
it should be used in the exception filter
n
thanks for the help i resolved juest by re initilizing the module
p
sounds good 🙂