Aithusa
12/06/2022, 11:58 PMjava
Error: Initialisation not done. Did you forget to call the SuperTokens.init function?
I keep getting this error when going to my /testauth path but I did call the function before the route
import { verifySession } from "supertokens-node/recipe/session/framework/express/index.js";
router.get("/testauth", verifySession(), (req, res) => {
if (req.session == null) {
res.send({ error: "Must be signed in", code: "401" })
return
}
let userId = req.session.getUserId();
});
rp_st
12/07/2022, 4:01 AMrp_st
12/07/2022, 4:01 AMAithusa
12/07/2022, 4:01 AMAithusa
12/07/2022, 4:02 AMrp_st
12/07/2022, 4:02 AMAithusa
12/07/2022, 4:13 AMjava
GET "/auth/dashboard/api/users/count" and GET "auth/dashboard/api/users?limit=10"
but I'm not sure why. Its stopping the dashboard from working.Aithusa
12/07/2022, 4:29 AMrp_st
12/07/2022, 4:32 AMAithusa
12/07/2022, 5:32 AMrp_st
12/07/2022, 5:34 AMAithusa
12/07/2022, 5:35 AM2022-12-07T05:33:55.979614272Z
2022-12-07T05:33:58.560342146Z npm ERR! path /app
2022-12-07T05:33:58.562966086Z npm ERR! command failed
2022-12-07T05:33:58.563937831Z npm ERR! signal SIGTERM
2022-12-07T05:33:58.564605853Z npm ERR! command sh -c -- node ./bin/www
2022-12-07T05:33:58.566393428Z
2022-12-07T05:33:58.566906556Z npm ERR! A complete log of this run can be found in:
2022-12-07T05:33:58.567501291Z npm ERR! /root/.npm/_logs/2022-12-07T05_33_35_269Z-debug-0.log
Aithusa
12/07/2022, 6:00 AMrp_st
12/07/2022, 6:04 AMAithusa
12/07/2022, 6:18 AMrp_st
12/07/2022, 8:06 AM