Skip to content

Commit

Permalink
Use randomUUID for express session secret in msal-node samples
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormmg committed May 8, 2024
1 parent 4fd34f7 commit 0f65c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/msal-node-samples/b2c-user-flows/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function main(scenarioConfig, clientApplication, port, redirectUri) {
* and set them as desired. Visit: https://www.npmjs.com/package/express-session
*/
const sessionConfig = {
secret: process.env.AZURE_CLIENT_SECRET,
secret: crypto.randomUUID(),
resave: false,
saveUninitialized: false,
cookie: {
Expand Down

0 comments on commit 0f65c32

Please sign in to comment.