fn validate_jwt_expiry_time(jwt: ServerJwt) -> request::Outcome<ServerJwt, Error> {
        if jwt.0.exp < Utc::now().naive_utc() {
            info!("Token expired.");
            return Outcome::Failure((Status::Unauthorized, Error::ExpiredToken));
        }
        Outcome::Success(jwt)
    }
/// Make sure that the JWT hasn't expired yet.
Make sure that the JWT hasn't expired yet.
Make sure that the JWT hasn ' t expired yet .
fn validate_jwt_expiry_time(jwt: ServerJwt) -> request::Outcome<ServerJwt, Error> {
        if jwt.0.exp < Utc::now().naive_utc() {
            info!("Token expired.");
            return Outcome::Failure((Status::Unauthorized, Error::ExpiredToken));
        }
        Outcome::Success(jwt)
    }
fn validate_jwt_expiry_time ( jwt : ServerJwt ) -> request :: Outcome < ServerJwt , Error > { if jwt . 0 . exp < Utc :: now ( ) . naive_utc ( ) { info ! ( " " ) ; return Outcome :: Failure ( ( Status :: Unauthorized , Error :: ExpiredToken ) ) ; } Outcome :: Success ( jwt ) }
Make sure that the JWT hasn't expired yet.
Make sure that the JWT hasn ' t expired yet .
jwt
ServerJwt
jwt
ServerJwt