Tag: nodejs

Passport.js Authentication

What is middleware Authentication and why it is important? Middleware Authentication is the technique used to ensure that the managing server and data collectors communicate with each other in a secure manner. lets give a simple example: suppose…

Read More »

Circular dependencies in Node.js

What is cyclic/ circulardependencies in nodeJs When required a module and we got {} instead. Suppose, we have the following code // moduleA.js var ModuleB = require(‘./moduleB.js’); var ModuleA = function() { this.bInstance = ModuleB(); this.property = 10;…

Read More »