Skip to main content

normalize_scope_token

Function normalize_scope_token 

Source
pub fn normalize_scope_token(tok: &str) -> Option<&str>
Expand description

Normalize a single scope token. RFC 6749 §3.3 scope tokens are 1*(%x21 / %x23-5B / %x5D-7E) — no space, no ", no control chars. Returns None for tokens that are empty or contain characters outside the allowed set.