pub fn validator(
req: ServiceRequest,
credentials: &BearerAuth,
) -> Result<ServiceRequest, (Error, ServiceRequest)>
Expand description
Validates JWTs in requests and sets user information as part of the request.
Used by actix_web_httpauth::middleware::HttpAuthentication
.
§Errors
- If the token is missing or invalid