nextjs-basic-auth-middleware
Advanced tools
Changelog
3.1.0
Changelog
3.0.0
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
Changelog
2.0.0
Changelog
0.2.0