Skip to main content

normalize_oauth_config_value

Function normalize_oauth_config_value 

Source
pub fn normalize_oauth_config_value(raw: &str) -> Option<String>
Expand description

Normalize OAuth config values loaded from env/secrets.

Some secret managers preserve trailing newlines/spaces when values are set via shell pipes. We trim and reject empty results so providers don’t get enabled with unusable credentials.