Releases: labd/nextjs-basic-auth-middleware
Releases · labd/nextjs-basic-auth-middleware
3.0.1
3.0.0
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 requiresnext
>=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 belownext
13.1