Skip to main content

accept_oauth_callback

Function accept_oauth_callback 

Source
pub async fn accept_oauth_callback(
    listener: &TcpListener,
) -> Result<OAuthCallback, OAuthError>
Expand description

Accept an OAuth callback on an already-bound listener.

Loops until it receives a valid OAuth callback, skipping stale connections left over from previous flows (e.g. browser favicon requests, preconnect sockets, or closed connections).