class Doorkeeper::OAuth::PasswordAccessTokenRequest

def validate_scopes

def validate_scopes
  return true if scopes.blank?
  ScopeChecker.valid?(
    scope_str: scopes.to_s,
    server_scopes: server.scopes,
    app_scopes: client.try(:scopes),
    grant_type: grant_type,
  )
end