{"id":25931158,"url":"https://github.com/alexanderschau/access_token","last_synced_at":"2026-05-04T18:33:17.105Z","repository":{"id":62422303,"uuid":"400492917","full_name":"alexanderschau/access_token","owner":"alexanderschau","description":"Access Tokens 🔑 for Deno 🦕","archived":false,"fork":false,"pushed_at":"2022-05-01T09:18:50.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-09T22:47:32.962Z","etag":null,"topics":["deno","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/access_token","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-27T11:54:46.000Z","updated_at":"2021-10-21T17:08:09.000Z","dependencies_parsed_at":"2022-11-01T17:31:27.770Z","dependency_job_id":null,"html_url":"https://github.com/alexanderschau/access_token","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alexanderschau/access_token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Faccess_token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Faccess_token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Faccess_token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Faccess_token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderschau","download_url":"https://codeload.github.com/alexanderschau/access_token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderschau%2Faccess_token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32619654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["deno","javascript","typescript"],"created_at":"2025-03-03T23:58:10.287Z","updated_at":"2026-05-04T18:33:17.063Z","avatar_url":"https://github.com/alexanderschau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# access_token\n\nRandom Token Generator for Deno 🦕 and the Browser.\n\n## Example\n\n```ts\nimport { accessToken } from \"https://deno.land/x/access_token@VERSION/mod.ts\";\n\n// Create a new token\n// accessToken.generate(prefix, secret?)\nconst token = accessToken.generate(\"mtt\", \"my_optional_secret\");\n\n// Validate a token\nif (accessToken.validate(token, \"my_optional_secret\")) {\n  console.log(\"Token is valid: \", token);\n}\n\n// Remove token from string (e.g. on Code Scanning)\nconst stringToCheck =\n  \"This is my token: xxx_1BpDK7DKPGCgc4EOmsq0mGIfw45XmS1ge36n.\";\nconst stringWithoutToken = stringToCheck.replaceAll(\n  accessToken.regExp,\n  \"SECRET_TOKEN\",\n);\nconsole.log(\"After scanning:\", stringWithoutToken);\n```\n## Format\nThis token generator is inspired by [GitHub new authentication token format](https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/). It is easy to recognize (by humans and machines) and allows us to validate it, without the need to hit a database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderschau%2Faccess_token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderschau%2Faccess_token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderschau%2Faccess_token/lists"}