# ClientCredentialsOptions (/docs/rest/api/interfaces/ClientCredentialsOptions)



[@kysoql/rest](/docs/rest/api) / ClientCredentialsOptions

Options for the Salesforce client-credentials grant in the REST package.

## Extends [#extends]

* [`HttpOptions`](/docs/rest/api/interfaces/HttpOptions)

## Properties [#properties]

| Property                                            | Modifier   | Type                                         | Description                                                                           | Inherited from                                                                                                                     |
| --------------------------------------------------- | ---------- | -------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| <a id="api-property-loginurl" /> `loginUrl`         | `readonly` | `string`                                     | My Domain origin configured for the OAuth client-credentials flow.                    | -                                                                                                                                  |
| <a id="api-property-clientid" /> `clientId`         | `readonly` | `string`                                     | Connected App consumer key / OAuth client ID.                                         | -                                                                                                                                  |
| <a id="api-property-clientsecret" /> `clientSecret` | `readonly` | `string`                                     | Connected App client secret used by the client-credentials grant.                     | -                                                                                                                                  |
| <a id="api-property-fetch" /> `fetch?`              | `readonly` | (`input`, `init?`) => `Promise`\<`Response`> | Native fetch by default. An injected implementation must honour signal and redirect.  | [`HttpOptions`](/docs/rest/api/interfaces/HttpOptions).[`fetch`](/docs/rest/api/interfaces/HttpOptions#api-property-fetch)         |
| <a id="api-property-signal" /> `signal?`            | `readonly` | `AbortSignal`                                | Combines with the client's signal; cancelling one operation does not cancel others.   | [`HttpOptions`](/docs/rest/api/interfaces/HttpOptions).[`signal`](/docs/rest/api/interfaces/HttpOptions#api-property-signal)       |
| <a id="api-property-timeoutms" /> `timeoutMs?`      | `readonly` | `number`                                     | Per HTTP request, including token acquisition and response body. Default: 30 seconds. | [`HttpOptions`](/docs/rest/api/interfaces/HttpOptions).[`timeoutMs`](/docs/rest/api/interfaces/HttpOptions#api-property-timeoutms) |
