akil_av17
03/26/2024, 4:29 AMapp.get("/auth/internal/verify-session", async (req: SessionRequest, res, next) => {
try {
await verifySession({sessionRequired: true}) (req, res, next);
res.json({
success: true,
payload: req.session
});
} catch (err) {
console.log("Error in verify-session", err);
next(err);
}
});
Error Log:
Error in verify-session Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Response:
{
"message": "unauthorised"
}
rp_st
03/26/2024, 7:18 AMSuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).
Powered by