Skip to main content

validate_verification_uri

Function validate_verification_uri 

Source
pub fn validate_verification_uri(uri: &str) -> Result<(), CopilotAuthError>
Expand description

Accept only the documented GitHub device verification destination: https://github.com/login/device optionally with a single user_code query (verification_uri_complete). Rejects userinfo, fragments, alternate ports, deceptive paths, and arbitrary query keys.