{"id":21278402,"url":"https://github.com/wdalmut/token-auth-js","last_synced_at":"2026-04-21T16:33:51.396Z","repository":{"id":142589658,"uuid":"124753135","full_name":"wdalmut/token-auth-js","owner":"wdalmut","description":"Token Authentication layer for @wdalmut/mini-auth","archived":false,"fork":false,"pushed_at":"2018-03-11T12:14:48.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T13:41:45.708Z","etag":null,"topics":["authentication","express","express-middleware","token-authetication"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/wdalmut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-11T12:14:35.000Z","updated_at":"2020-01-16T06:29:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"8278414d-e850-4c47-b096-43e04027e522","html_url":"https://github.com/wdalmut/token-auth-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wdalmut/token-auth-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ftoken-auth-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ftoken-auth-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ftoken-auth-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ftoken-auth-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdalmut","download_url":"https://codeload.github.com/wdalmut/token-auth-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ftoken-auth-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262182738,"owners_count":23271678,"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":["authentication","express","express-middleware","token-authetication"],"created_at":"2024-11-21T10:13:30.150Z","updated_at":"2026-04-21T16:33:46.366Z","avatar_url":"https://github.com/wdalmut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Token Authentication layer for @wdalmut/mini-auth\n\nA simple authentication layer for `token auth`\n\n```\nnpm install --save @wdalmut/token-auth\n```\n\n## Usage\n\n```js\ntoken((token) =\u003e {\n  return Promise.resolve({id: 1, ...})\n})(res)\n```\n\n### Usage with `@wdalmut/mini-auth`\n\n```js\n// just an example\nconst fromDB = (token) =\u003e {\n  return User.find(/*...*/),\n};\n\nauth(token(fromDb))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Ftoken-auth-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdalmut%2Ftoken-auth-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Ftoken-auth-js/lists"}