DEV Community

Discussion on: Secure JSON Web Token with Unique Browser IDs

Collapse
 
abdellani profile image
Mohamed ABDELLANI

Hi,
Thank a lot for sharing.
But I was wondering, are we going to have the same results if we use a package like v4 from uuid npmjs.com/package/uuid ?

Collapse
 
alexanderschau profile image
Alexander Schau

Thanks for your question.
The uuid package only generates random ids. If you are using uniquebrowserid, you can get a unique id for your browser (this doesn't change until you're updating you browser). To make this happen, the library uses unique details about your device. For more information you can visit amiunique.org/fp, they detailed it really clear, how the whole thing works.