Developing a web apps using ReactJS. I need to ensure that no user can login to multiple device at the same time. To identify the device I need to to generate a unique device ID. I tried a lot of answers but didn't find any proper solution for reactjs/javascript. I tried to collect OS/PC information and generate by myself but all I got only oscpu: "Windows NT 10.0; Win64; x64" platform: "Windows NT" using window.navigator.
Please help to generate an unique PC ID.
you can use
Math.random()
for that or usinganswer based on this
for best practices, you can integrate with a backend server and databases for perfect unique ids to databases