Skip to main content

parse_pasted_callback

Function parse_pasted_callback 

Source
pub fn parse_pasted_callback(
    input: &str,
    expected_state: &str,
    port: u16,
) -> Option<CallbackResult>
Expand description

Parse a manually pasted Google OAuth loopback callback URL. Strict: requires http/127.0.0.1/exact-port/exact-path, both code and state, and exact state equality — never defaults a missing state.