Friday 28 June 2019

I'm new to sessions and I am very confused

I send this to my client side res.status(201).send("true") and the browser states unhandled promise rejection(ID:0) Syntax Error: unexpected identifier: "session"In the beginning of my app I added this, using express sessions.app.use(session({name: "gm",secret: "idk what this does lol",cookie: {maxAge: 1000 * 60 * 60 * 80,sameSite: true,secure: true,resave: false,saveUnitialized: false}}));How do I get rid of the unhandled promise rejection?

Submitted June 28, 2019 at 07:49PM by BensonandEdgar

No comments:

Post a Comment