Closed sarathjasrin closed 9 months ago
Hey! You need to use app.use(middleware())
, instead of app.use('/api',middleware());
.
Also, in supertokens.init, you need to set apiBasePath to /api/auth
in the appInfo config if you want to use /api/auth
as the prefix instead of /auth
(which is the default)
I have tried to create a simple express node and next js front end. The front end is created using started pack module.
Backed
server.js
The api throwing 404
Node : v20.6.0