Databricks SDK for JavaScript
    Preparing search index...
    • Creates a TokenCredentials that authenticates as a Databricks service principal using the OAuth client credentials grant.

      The returned credentials do not cache tokens or retry on failure. Wrap them with newCachedTokenProvider as needed.

      Parameters

      Returns TokenCredentials

      M2mCredentialsError when host, clientId, or clientSecret is empty, when token-endpoint discovery fails, or when the token endpoint returns an error.