If anonymous access is allowed, this value will be passed to req.user
, defaults to null
.
Provide a function that returns a user by its id.
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.