Getting 404 with supertoken auth apis in NESTJS
n
Getting 404 with supertoken auth apis in NESTJS
r
Can you enable debug logs and send the request?
and then show the output
n
i've enabled logs but i am not getting any error in the backend
r
which version of the supertokens-node SDK? How have you enabled logs?
n
"supertokens-node": "^9.2.0"
r
ok. that version is fine
n
i've followed this guide
r
How have you enabled debug logs?
Did you see the troubleshooting section?
n
"start:dev": "DEBUG=com.supertokens && nest start --watch",
r
Chanhe it to
DEBUG=com.supertokens nest start --watch
n
nop
r
remove the &&
n
alright
now this is what i am getting
perhaps some issue with the middleware
this is the api
r
what are the logs when you start the server?
n
returning 404
r
what is the value of apiBasePath that you have set on the backend?
n
r
So you need to set the apiBasePath on the frontend to "/" as well. Also, you should remove the "/auth" from your query URLs cause your apiBasePath is just "/" (which is what you have set)
n
initially it was /api/v1 but my front-end sdk was not prefixing that so i removed from front-end and back-end as well
let me check that agian
19 Views