Skip to main content

start_callback_server

Function start_callback_server 

Source
pub async fn start_callback_server(
    expected_state: String,
    port: u16,
) -> Result<(Receiver<CallbackResult>, CallbackServerHandle), String>
Expand description

Start a temporary HTTP server on localhost that captures the OAuth callback. Returns a oneshot receiver that resolves with the auth code + state.