diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/RefreshableTokenSource.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/RefreshableTokenSource.java index c4afd0859..588be1146 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/RefreshableTokenSource.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth/RefreshableTokenSource.java @@ -45,8 +45,7 @@ protected enum TokenState { // The current OAuth token. May be null if not yet fetched. protected volatile Token token; // Whether asynchronous refresh is enabled. - private boolean asyncEnabled = - Boolean.parseBoolean(System.getenv("DATABRICKS_ENABLE_EXPERIMENTAL_ASYNC_TOKEN_REFRESH")); + private boolean asyncEnabled = true; // Duration before expiry to consider a token as 'stale'. private Duration staleDuration = DEFAULT_STALE_DURATION; // Additional buffer before expiry to consider a token as expired.