Skip to main content

extract_auth_code

Function extract_auth_code 

Source
pub fn extract_auth_code(input: &str) -> String
Expand description

Extract the authorization code from a callback URL or raw code string.

Accepts either a full URL (e.g., http://127.0.0.1:8080/callback?code=XXX&state=YYY) or a bare authorization code.