If anonymous access is allowed, this value will be passed to req.user
, defaults to null
.
A function that will be called with the provided username and password.
Grants access if this function evaluates to true
.
Authorization header name, defaults to Authorization
Override the default unauthorized responding behaviour.
Generated using TypeDoc
Enable if unauthorized access should still be possible and the middleware should populate the request with user information.