validator

Function validator 

Source
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