pub fn has_scope(scopes: &str, needed: &str) -> bool
Returns true iff scopes (comma-separated) contains an exact-match token for needed. Whitespace around each token is trimmed.
true
scopes
needed