pub fn extract_string( value: &Value, field_name: &str, ) -> Result<String, ClaimsError>
Helper to extract string from JSON value.
Returns ClaimsError::InvalidClaimFormat if the value is not a string.
ClaimsError::InvalidClaimFormat