nodejs user system authentication

I'm a nodejs beginner and I have a question about authentication.
My goal is to have an authentication based on the operative system users where the server js run.
I read many article on passport and express framework, but all require the presence of a mongoDB and it was out of scope for my problem.

So my question is:
Is it possible in nodejs to interact with OS and write an authentication module for the OS users?

I don't know exactly how is it possible, but it should be possible.

Some links for Windows:

However, if you are new to Node.js then using Windows Authentication strategy for Passport.js together with some MongoDB alternative (see Stack Overflow: Lightweight Javascript DB for use in Node.js) may be an easier way to go