Skip to main content

bind_loopback

Function bind_loopback 

Source
pub async fn bind_loopback(port: u16) -> Result<TcpListener, OAuthError>
Expand description

Bind a one-shot loopback listener for the OAuth redirect on 127.0.0.1:<port>. Bind before opening the browser so the redirect can never arrive before we’re listening.