Unique Browser ID
This package creates a unique ID for every browser, which you can use to bind JWTs to a clients browser. This helps to prevent token thiefs 🔒.
Note: This project is still under developement. Many features are following in future.
Installation and Usage
You can install this package using npm:
npm install uniquebrowserid
;const myid = ;
Usage with JSON Web Tokens
;const oneTimeID = ;
This will generate a TOTP key, which will be hashed with the unique ID of the browser. The generated ID will be valid for 30 seconds.
;if//one time ID is valid;
This will check the send ID and returns a boolean value.
Everyone is invited to participate in this project. Feel free to create Issues and Pull Requests 😀. A detailed contribution guide will follow in the future.
If you want to get the latest information on this project follow me on dev.to.