Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to determine a client operating system in Node.js

Tags:

node.js

npm

I'm trying to implement 2FA in my app during login process, and I wish to send them the operating system and name of device of which the login request is coming from, but I have tried searching around for a solution to determine this, the one I found was only for the backend(nodejs os module). Is there any npm module or way around for me to archive this.

like image 514
Fillipo Sniper Avatar asked Dec 02 '25 22:12

Fillipo Sniper


1 Answers

Use Sniffr package to get information from the user-agent from headers in request...

enter image description here

like image 130
Tilak Putta Avatar answered Dec 04 '25 15:12

Tilak Putta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!