{"id":21278695,"url":"https://github.com/wdalmut/basic-auth-js","last_synced_at":"2025-10-08T00:08:06.885Z","repository":{"id":142589549,"uuid":"124743997","full_name":"wdalmut/basic-auth-js","owner":"wdalmut","description":"Basic Auth layer for @wdalmut/mini-auth","archived":false,"fork":false,"pushed_at":"2018-03-11T11:11:18.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T00:09:44.820Z","etag":null,"topics":["basic-auth","basic-authentication","express","express-middleware"],"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-11T10:05:38.000Z","updated_at":"2020-01-16T06:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6631362-07f2-4799-b6cb-a60b41650e18","html_url":"https://github.com/wdalmut/basic-auth-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wdalmut/basic-auth-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Fbasic-auth-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Fbasic-auth-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Fbasic-auth-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Fbasic-auth-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdalmut","download_url":"https://codeload.github.com/wdalmut/basic-auth-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Fbasic-auth-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278866931,"owners_count":26059671,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["basic-auth","basic-authentication","express","express-middleware"],"created_at":"2024-11-21T10:15:43.756Z","updated_at":"2025-10-08T00:08:06.879Z","avatar_url":"https://github.com/wdalmut.png","language":"JavaScript","readme":"# Basic Authentication layer for @wdalmut/mini-auth\n\nA simple authentication layer for `basic auth`\n\n```\nnpm install --save @wdalmut/basic-auth\n```\n\n## Usage\n\n```js\nbasic((username, password) =\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 = (username, password) =\u003e {\n  return User.find(/*...*/),\n};\n\nauth(basic(fromDb))\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Fbasic-auth-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdalmut%2Fbasic-auth-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Fbasic-auth-js/lists"}