{"id":26290026,"url":"https://github.com/alexanderschau/uniquebrowserid","last_synced_at":"2025-05-07T22:44:32.932Z","repository":{"id":46667270,"uuid":"309779479","full_name":"alexanderschau/uniquebrowserid","owner":"alexanderschau","description":"A unique ID generator for browsers.","archived":false,"fork":false,"pushed_at":"2023-07-19T00:15:09.000Z","size":131,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T22:44:25.226Z","etag":null,"topics":["angular","browser","hacktoberfest","javascript","jwt","react","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexanderschau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-03T18:54:00.000Z","updated_at":"2024-02-10T11:49:22.000Z","dependencies_parsed_at":"2023-01-21T21:00:53.804Z","dependency_job_id":null,"html_url":"https://github.com/alexanderschau/uniquebrowserid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Funiquebrowserid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Funiquebrowserid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Funiquebrowserid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Funiquebrowserid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderschau","download_url":"https://codeload.github.com/alexanderschau/uniquebrowserid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967974,"owners_count":21833245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","browser","hacktoberfest","javascript","jwt","react","vue"],"created_at":"2025-03-14T23:17:44.690Z","updated_at":"2025-05-07T22:44:32.907Z","avatar_url":"https://github.com/alexanderschau.png","language":"TypeScript","readme":"# Unique Browser ID\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/alexanderschau/uniquebrowserid)\n\nThis 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 🔒.\n\u003e **Note**: This project is still under developement. Many features are following in future.\n## Installation and Usage\nYou can install this package using npm:\n```shell\nnpm install uniquebrowserid\n```\nExample usage:\n```js\nimport UID from 'uniquebrowserid';\n\nconst myid = new UID().completeID();\n```\n### Usage with JSON Web Tokens\nClient side:\n```js\nimport UID from 'uniquebrowserid';\n\nconst oneTimeID = new UID().generateOneTimeID(\"randomStringKey\");\n```\nThis 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.\n\nServer side:\n```js\nimport UID from 'uniquebrowserid';\n\nif ( new UID().checkOneTimeID(\"OneTimeID\", \"original ID\", \"randomStringKey\") ){\n    //one time ID is valid\n};\n```\nThis will check the send ID and returns a boolean value.\n## Contribute\nEveryone is invited to participate in this project. Feel free to create Issues and Pull Requests 😀. A detailed contribution guide will follow in the future.\n\n---\nIf you want to get the latest information on this project follow me on [dev.to](https://dev.to/alexanderschau).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderschau%2Funiquebrowserid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderschau%2Funiquebrowserid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderschau%2Funiquebrowserid/lists"}