DEV Community

loading...

Discussion on: Keycloak and Express

Collapse
patel264 profile image
dharmendra patel

app.use(session({
secret:'thisShouldBeLongAndSecret',
resave: false,
saveUninitialized: true,
store: memoryStore
}));

What is the secret in this ?
it this the public key from keycloak

Collapse
austincunningham profile image
Austin Cunningham Author

Hi Dharmendra,
It's the express-sessions secret and is something you set yourself, see stackoverflow.com/questions/534313... or the original docs senchalabs.org/connect/session.html for more info.

Forem Open with the Forem app