nextjs-basic-auth-middleware
nextjs-basic-auth-middleware copied to clipboard
Add basic authentication to a NextJS application as middleware
Hi, I've been testing your middleware and I realised that if you define some locales inside `next.config.js`, then the authentication is automatically bypassed. If the user clicks “Cancel” multiple times,...
Somehow it's not working with latest project structure that are generated by `npx create-next-app@latest`
Thank you for providing awesome package. I've noticed this middleware returns 500 if `basicAuthentication` throws BadRequestException https://github.com/labd/nextjs-basic-auth-middleware/blob/db07837769d1795c1eac5bdcbccd7715b71f54df/src/middleware.ts#L52-L56 Is it intentional? ## Actual ``` $ curl localhost:3000 -H 'authorization: foo' -I...
Hello! Need your help with the nextBasicAuthMiddleware approach. I need to have other rules in the middleware function so I'm trying to implement the nextBasicAuthMiddleware function. createNextAuthMiddleware approach works. How...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...