Skip to main content

set_oauth_client_creds

Function set_oauth_client_creds 

Source
pub fn set_oauth_client_creds(
    creds: HashMap<String, OAuthClientCreds>,
) -> Result<(), OAuthClientCredsConflict>
Expand description

Register the host’s OAuth client credentials, keyed by provider name ("google_drive", "dropbox", "onedrive"). Call once at startup, before any OAuth flow. Providers absent from the map get empty credentials. Re-registering the same map is a no-op; a differing map is a startup contradiction and returns OAuthClientCredsConflict.