Skip to main content

has_scope

Function has_scope 

Source
pub fn has_scope(scopes: &str, needed: &str) -> bool
Expand description

Returns true iff scopes (comma-separated) contains an exact-match token for needed. Whitespace around each token is trimmed.