If anonymous access is allowed, this value will be passed to req.user
, defaults to null
.
Provide your own token decode function. Must return the user id contained in the token.
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.