{"id":25715987,"url":"https://github.com/3ru/basic-auth-password","last_synced_at":"2026-06-12T06:06:08.050Z","repository":{"id":237442838,"uuid":"623556634","full_name":"3ru/basic-auth-password","owner":"3ru","description":"Vercel's edge middleware testing","archived":false,"fork":false,"pushed_at":"2023-04-04T16:06:17.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T14:49:46.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://basic-auth-password-navy.vercel.app","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/3ru.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":"2023-04-04T15:53:54.000Z","updated_at":"2023-04-04T16:08:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"5be4bc48-a0b2-4e8c-b500-c1c3b87180a1","html_url":"https://github.com/3ru/basic-auth-password","commit_stats":null,"previous_names":["3ru/basic-auth-password"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3ru/basic-auth-password","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3ru%2Fbasic-auth-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3ru%2Fbasic-auth-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3ru%2Fbasic-auth-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3ru%2Fbasic-auth-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3ru","download_url":"https://codeload.github.com/3ru/basic-auth-password/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3ru%2Fbasic-auth-password/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34231243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2025-02-25T14:40:10.736Z","updated_at":"2026-06-12T06:06:08.045Z","avatar_url":"https://github.com/3ru.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nname: Basic Auth Password Protection\nslug: basic-auth-password\ndescription: Password protect pages in your application using Edge Middleware.\nframework: Next.js\nuseCase: Edge Middleware\ncss: Tailwind\ndeployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-middleware/basic-auth-password\u0026project-name=basic-auth-password\u0026repository-name=basic-auth-password\ndemoUrl: https://edge-functions-basic-auth-password.vercel.app\nrelatedTemplates:\n  - jwt-authentication\n  - subdomains-auth\n---\n\n# Basic Auth Password Protection\n\nPassword protect pages in your application using Edge Middleware.\n\n## Demo\n\nhttps://edge-functions-basic-auth-password.vercel.app\n\nLogin credentials:\n\n- Username: `4dmin`\n- Password: `testpwd123`\n\n## How to Use\n\nYou can choose from one of the following two methods to use this repository:\n\n### One-Click Deploy\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=vercel-examples):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/examples/tree/main/edge-middleware/basic-auth-password\u0026project-name=basic-auth-password\u0026repository-name=basic-auth-password)\n\n### Clone and Deploy\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpx create-next-app --example https://github.com/vercel/examples/tree/main/edge-middleware/basic-auth-password basic-auth-password\n# or\nyarn create next-app --example https://github.com/vercel/examples/tree/main/edge-middleware/basic-auth-password basic-auth-password\n```\n\nNext, run Next.js in development mode:\n\n```bash\nnpm install\nnpm run dev\n\n# or\n\nyarn\nyarn dev\n```\n\nDeploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=edge-middleware-eap) ([Documentation](https://nextjs.org/docs/deployment)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3ru%2Fbasic-auth-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3ru%2Fbasic-auth-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3ru%2Fbasic-auth-password/lists"}