Joe
Joe
KKinde
Created by Joe on 12/12/2023 in #💻┃support
Authentication issue after login. Node Express SDK.
Hi, I am trying to get integration with my express/node server up and running, I can login, and get redirected, but using the quick start code from the experess SDK app.get("/", (req, res) => {     if (req.session && req.session.kindeAccessToken) {         res.send("You are authenticated!");     } else {         res.send("You are not");     } }); - I have interrogated the req.session and it looks like this: | Session { 1|app | cookie: { 1|app | path: '/', 1|app | _expires: 2023-12-12T16:28:39.653Z, 1|app | originalMaxAge: 86400000, 1|app | httpOnly: true 1|app | }, 1|app | kindeState: 'afae3ce6c4851292227f2639575c0d61d8897cc799704574cacc45af', but the req.session..kindeAccessToken is undefined and if I run the verifier middleware I get JWTParseError: Empty JWT Any help would be appreciated Cheers Joe
4 replies