(ns metabase.auth-provider
  (:require
   [metabase.public-settings.premium-features :refer [defenterprise]]))

How many seconds before expiry we should prefer renewal. This is a fairly arbitrary value, it's used just to avoid situations when we decide to use an auth token which expires before we can put it to use.

(def azure-auth-token-renew-slack-seconds
  60)

In OSS, this returns an empty map.

(defenterprise fetch-auth 
  metabase-enterprise.auth-provider [_driver _database-id _db-details] {})