Founder of Codeforgeek. Technologist. Published Author. Engineer. Content Creator. Teaching Everything I learn!

File uploads using Node.js

File upload in node.js seems tedious due to its async nature and network programming approach. However, it is one of the easiest file upload mechanisms I have seen yet. LIVE DEMO DOWNLOAD How to perform file upload? I am going to use express framework and middleware called “multer”. This middleware is designed for handling the multipart/form-data. In …

File uploads using Node.js Read More »

Nodejs Authentication Using JWT and Refresh Token

Nodejs authentication using JWT a.k.a JSON web token is very useful when you are developing a cross-device authentication mechanism. Here is how token-based authentication works: User logins to the system and upon successful authentication, the user are assigned a token which is unique and bounded by time limit say 15 minutes On every subsequent API …

Nodejs Authentication Using JWT and Refresh Token Read More »