Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nextjs-basic-auth-middleware

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-basic-auth-middleware - npm Package Versions

3.1.0

Diff

Changelog

Source

3.1.0

Minor Changes

  • 598cca4: Properly minify modules Move towards ESM first with CommonJS as secondary output
blurrah
published 3.0.1 •

Changelog

Source

3.0.1

Patch Changes

  • Add artifacts to NPM release
blurrah
published 3.0.0 •

Changelog

Source

3.0.0

Major Changes

  • Use middleware responses instead of api page redirect

    This removes the createApiPage export and uses Middleware responses to serve a 401 when basic authentication fails. This requires next >=13.1.

    This is a much cleaner and less hacky approach to return the correct status code to a browser.

    :warning: This is a breaking change, please use v2 if you are below next 13.1

blurrah
published 2.0.0 •

Changelog

Source

2.0.0

  • BREAKING CHANGE: Removes SSR Middleware
  • BREAKING CHANGE: Updates Next.js middleware to use API pages for 401 error message
blurrah
published 1.0.0 •

Changelog

Source

1.0.0

  • Adds first version of the Next.js middleware
blurrah
published 0.2.1 •

Changelog

Source

0.2.1

  • fix(middleware): return true when request object does not have a url
blurrah
published 0.2.0 •

Changelog

Source

0.2.0

  • fix(auth): fix empty credentials returning valid authorization
  • fix(middleware): allow optional use of options object
  • chore: update all dependencies
blurrah
published 0.1.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc