pub fn validate_token( token: &str, config: &JwtConfig, ) -> Result<AuthResult, JwtError>
Validate a JWT token and extract claims.