Skip to main content

handle_sign_challenge

Function handle_sign_challenge 

Source
pub async fn handle_sign_challenge(
    user_code: Option<String>,
    nonce: Option<String>,
    code_challenge: Option<String>,
    server: Option<String>,
    insecure: bool,
    config: Option<&HyprConfig>,
) -> Result<()>
Expand description

Handle hyprstream sign-challenge [USER_CODE] [--nonce N] [--code-challenge CC]

config is the already-loaded HyprConfig (honoring --config/env) so the OAuth issuer URL and the secrets directory holding the local self-signed cert are resolved from the user’s selected configuration, not re-derived from defaults. None falls back to default config resolution.