{"library":"nextjs-basic-auth","type":"library","category":null,"description":"nextjs-basic-auth provides a straightforward method for integrating HTTP Basic Authentication directly into Next.js applications on a per-route basis. Currently at version 0.1.3, this package is designed for simplicity, offering an `initializeBasicAuth` function that returns a check function to be awaited within `getServerSideProps`. It explicitly requires developers to opt out of Next.js's static generation for any authenticated pages, as it needs a server-side context to perform credential checks for each request. Its release cadence appears stable and infrequent, focusing on a specific, well-defined security concern for Next.js page routes. Key differentiators include its direct integration with `getServerSideProps` for page-level protection, in contrast to middleware-based solutions (like `nextjs-basic-auth-middleware`) or more comprehensive authentication libraries (like NextAuth.js) that handle broader authentication flows including sessions, OAuth, and database integration.","language":"javascript","status":"maintenance","version":"0.1.3","tags":["javascript","next","nextjs","basic auth","auth","typescript"],"install":[{"cmd":"npm install nextjs-basic-auth","imports":["import initializeBasicAuth from 'nextjs-basic-auth'"]},{"cmd":"yarn add nextjs-basic-auth","imports":[]},{"cmd":"pnpm add nextjs-basic-auth","imports":[]}],"homepage":null,"github":"https://github.com/jchiatt/nextjs-basic-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/nextjs-basic-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/nextjs-basic-auth/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}