pub fn validate_token(token: &str) -> Result<Claims, Error>
Middleware to extract and validate JWT token from the request.