Skip to main content

start_login

Function start_login 

Source
pub fn start_login(
    provider: &OidcProviderConfig,
    scopes: &[String],
    timeout: Duration,
) -> Result<LoginStart>
Expand description

Starts a desktop OIDC login against provider: builds the PKCE pair and CSRF state via the kit, binds the loopback listener, and returns the URL to open. Complete the flow by waiting and exchanging the code.

§Errors

Propagates the kit’s flow-start errors (bind failure, URL build).