We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thank you for providing awesome package. I've noticed this middleware returns 500 if basicAuthentication throws BadRequestException
basicAuthentication
nextjs-basic-auth-middleware/src/middleware.ts
Lines 52 to 56 in db07837
Is it intentional?
$ curl localhost:3000 -H 'authorization: foo' -I HTTP/1.1 500 Internal Server Error
$ curl localhost:3000 -H 'authorization: foo' -I HTTP/1.1 400 Bad Request
import { createNextAuthMiddleware } from "nextjs-basic-auth-middleware"; export const middleware = createNextAuthMiddleware({ users: [{ name: "foo", password: "bar" }], }); export const config = { matcher: ["/(.*)"], };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thank you for providing awesome package.
I've noticed this middleware returns 500 if
basicAuthentication
throws BadRequestExceptionnextjs-basic-auth-middleware/src/middleware.ts
Lines 52 to 56 in db07837
Is it intentional?
Actual
Expectation
middleware.ts
The text was updated successfully, but these errors were encountered: