Hi, I am using nodejs/Express. But I am facing some issue with session.
I am using middleware like this;
import { verifySession } from "supertokens-node/recipe/session/framework/express/index.js";
router.post("/path", verifySession(), async (req, res) => {})
But I am getting 403 Forbidden when I try to hit the API. What could be possibly be I missing thanks.
I have also tried this:
let session = await Session.getSession(req, res);
But its console.log(session) logs INVALID_CLAIMS.
I have implemented frontend using nextjs and called the "init" funtion in _app.tsx file. Everything works expect session.
What am I missing. If anybody could comment. I would realy appreciate it. Thank You