pub fn check_scopes(
required: &[&str],
granted: &[String],
) -> Result<(), ScopeDenied>Available on crate feature
auth only.Expand description
Checks whether a user’s scopes satisfy a tool’s requirements.
Returns Ok(()) if the user has all required scopes, or an error
listing the missing scopes.