Category: ExpressJS

All ExpressJS NodeJS

Token based authentication in Node.js using JWT

Authentication is a big part of any application. The way authentication is handled traditionally is by creating a user session on the server where we usually store the user’s information in memory or on disk. This is also known as server/session based authentication. Web applications have come a long way in a past few year, […]

user 
All ExpressJS NodeJS

Intercept response body in NodeJS express app

Intercept response body or transform response body in express which, ever way you call it, one thing is for sure its not as straight forward as it is for the request body object. In this tutorial we will write an express middleware to intercept the response body object of an API request. You may have written […]

user