Hi Team,I ave implemented Keycloak using npm package "connect-keycloak"I am not able to find any example or help to fetch in the currently logged in userid through Node API's.Any help would be appreciated.My code snippet:App.jsvar memoryStore = new session.MemoryStore();var routes = require('./routes/index');var users = require('./routes/users');app.use( session({secret: 'aaslkdhlkhsd',resave: false,saveUninitialized: true,store: memoryStore,} ))var keycloak = new Keycloak({store: memoryStore});app.use( keycloak.middleware( {logout: '/logout',admin: '/',} ));Index.jsrouter.get('/',keycloak.protect(),function(req, res, next) {res.sendfile('pages/index.html',{root:'./public'});});----
With best regards :-Rushil AgarwalMobile: +91 78298 86000Please don't print this e-mail unless you really need to. SAVE PAPER TO SAVE TREES