module Doorkeeper::OAuth::Helpers::ScopeChecker

def self.valid?(scope_str:, server_scopes:, app_scopes: nil, grant_type: nil)

def self.valid?(scope_str:, server_scopes:, app_scopes: nil, grant_type: nil)
  Validator.new(
    scope_str,
    server_scopes,
    app_scopes,
    grant_type,
  ).valid?
end