productdevbook
ts server.get('/getJWT', { preHandler: verifySession(), }, (req, res) => { console.log(req.session, 'a') const session = req.session const jwt = session.getAccessTokenPayload().jwt console.log(jwt, 'b') res.send({ token: jwt }) })
b
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).