javascript
-
User specific session lifetime with cookie-session and passport.js
In business logic, we sometimes need to change session duration for users with specific conditions. It might be user permissions or security policies. When we manage a session on the server side with
Read more » May 27, 2024 - 4 min readexpress-session
, for example, it would not be a problem as we store user data on the server side, and on the client side, we keep identification tokens only. On the other hand, if we rely on the client side to store session information like JWT or session in cookies, we need to have some mechanics to update information on request. This article will cover the cookie-session JS package with thepassport.js
library on the express server. -
Is React Suspense useful?
React Suspense is relatively new feature that allows developers to create logic to show substitute components when data loads into the main component. But does it really make a difference for React devs and simplify code structure?
Read more » Jan 2, 2024 - 5 min read -
The features I've missed from node.js v16 to v20
Sometimes, in your career, you are focused on other aspects of your tech stack, and you miss some crucial updates in the other parts. For me, now it happens with Node.js. This article is more of a side note summarizing which updates I’ve missed and need to catch up on.
Read more » Oct 16, 2023 - 2 min read -
Image processing for Node.js with Sharp
Almost any modern web application requires some image manipulation for some reason. It might be an image resizing strategy to reduce site load speed or protect pictures with watermarks or anything you can imagine. All the heavy lifting does image processing libraries. Let’s look at one of them for Node.js.
Read more » Jul 6, 2022 - 3 min read