Skip to content

Releases: labd/nextjs-basic-auth-middleware

3.0.1

06 Mar 20:52
Compare
Choose a tag to compare

3.0.1

Patch Changes

  • Add artifacts to NPM release

3.0.0

06 Mar 20:51
Compare
Choose a tag to compare

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.

    ⚠️ This is a breaking change, please use v2 if you are below next 13.1

2.0.0

28 Oct 17:26
Compare
Choose a tag to compare

2.0.0

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

Please update to this version if you've been using the v1 Next.js middleware