(ns metabase-enterprise.enhancements.integrations.google
  (:require
   [metabase.integrations.google.interface :as google.i]
   [metabase.models.setting :as setting]
   [metabase.models.setting.multi-setting :refer [define-multi-setting-impl]]))
(define-multi-setting-impl google.i/google-auth-auto-create-accounts-domain :ee
  :getter (fn [] (setting/get-value-of-type :string :google-auth-auto-create-accounts-domain))
  :setter (fn [domain] (setting/set-value-of-type! :string :google-auth-auto-create-accounts-domain domain)))