Skip to main content

run_local_auth_server

Function run_local_auth_server 

Source
pub async fn run_local_auth_server(expected_state: String) -> Result<User>
Expand description

Starts a one-shot local HTTP server on 127.0.0.1:8080 that waits for the OAuth callback redirect. expected_state is the CSRF nonce generated by the caller; the callback validates it before accepting credentials.