If you use Express, then it could be worth looking at Express Session and the option to save the data to Redis:
app.use( session({ name: 'sessionForApplication', secret: process.env.SESSION_SECRET, saveUninitialized: true, resave: true, cookie: { expires: expiryDate, domain: process.env.APP_DOMAIN }, store: new RedisStore(optionsForRedis) }) )
Hi Wayne, Putri here β Michelle's cofounder.
This is very helpful, Express Session with Redis is definitely a great option. Thanks for the comment!
A pleasure, and glad to help.
Yes, redis is the best oneπ, also cookies would be my second option for JWT based storage
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you use Express, then it could be worth looking at Express Session and the option to save the data to Redis:
Hi Wayne, Putri here β Michelle's cofounder.
This is very helpful, Express Session with Redis is definitely a great option. Thanks for the comment!
A pleasure, and glad to help.
Yes, redis is the best oneπ, also cookies would be my second option for JWT based storage