pub async fn run_pkce_login(
cognito_domain: &str,
client_id: &str,
identity_provider: Option<String>,
http_client: &Client,
) -> Result<PkceResult, String>Expand description
identity_provider (a Cognito provider name, already checked by the
caller) sends the browser straight to that provider; None opens
Cognito’s own page.